Package edu.stanford.bmir.protege.web.client.rpc.data

Examples of edu.stanford.bmir.protege.web.client.rpc.data.UserSharingSetting


            }
        }
        for (User user : usersWithPermissionsOnProject) {
            Collection<Operation> operations = mpm.getAllowedOperations(projectId.getId(), user.getName());
            SharingSetting sharingSetting = getSharingSettingFromOperations(operations);
            UserSharingSetting userSharingSetting = new UserSharingSetting(UserId.getUserId(user.getName()), sharingSetting);
            result.add(userSharingSetting);
        }
        Collections.sort(result);

        return new ProjectSharingSettings(projectId, defaultSharingSetting, result);
View Full Code Here


    private void handleAdd(ItemListSuggestBox<UserId> suggestBox, SharingSettingsDropDown lb, TextArea addPeopleTextArea) {
        Set<UserId> items = suggestBox.getItems();
        items.removeAll(getUsersInSharingSettingsList());
        List<UserSharingSetting> listDataItems = new ArrayList<UserSharingSetting>(sharingSettingsList.getListData());
        for(UserId item : items) {
            listDataItems.add(new UserSharingSetting(item, lb.getSelectedItem()));
        }
        addPeopleTextArea.setText("");
        sharingSettingsList.setListData(listDataItems);
    }
View Full Code Here

        lb.setSelectedItem(listItem.getSharingSetting());
       
        lb.addValueChangeHandler(new ValueChangeHandler<SharingSetting>() {
            public void onValueChange(ValueChangeEvent<SharingSetting> valueChangeEvent) {
                SharingSetting value = valueChangeEvent.getValue();
                UserSharingSetting updatedType = new UserSharingSetting(listItem.getUserId(), value);
                displayedItems.set(rowCount, updatedType);
            }
        });
       
        flexTable.setWidget(rowCount, 1, lb);
View Full Code Here

TOP

Related Classes of edu.stanford.bmir.protege.web.client.rpc.data.UserSharingSetting

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.