Examples of XGroup


Examples of com.tensegrity.palo.gwt.core.client.models.admin.XGroup

    add(rolesTable);
  }

  public final boolean save(XObject input) {
    if (input instanceof XGroup) {
      XGroup group = (XGroup) input;
      group.clearRoles();
      for(XRole role : getSelectedRoles())
        group.addRoleID(role.getId());
    }
    return true;
  }
View Full Code Here

Examples of com.tensegrity.palo.gwt.core.client.models.admin.XGroup

  public void saveAs(String name, XObject input) {   
  }

  public void set(XObject input) {
    if (input instanceof XGroup) {
      XGroup group = (XGroup) input;
      rolesTable.removeAll();
      boolean isAdm = group != null && group.getName() != null && group.getName().equals("admin");
      ((CheckBoxTableColumn) rolesTable.getColumnModel().getColumn(0)).setEnabled(!isAdm);   
      List<String> roleIDs = Arrays.asList(group.getRoleIDs());
      setRoles(roleIDs);     
    }
  }
View Full Code Here

Examples of com.tensegrity.palo.gwt.core.client.models.admin.XGroup

    try {
    Object input = null;
    IEditor editor = null;
    switch(eventType) {
    case ADD_GROUP_ITEM:
      input = new TreeNode(null, new XGroup());
      editor = grpEditor;
      break;
    case ADD_ROLE_ITEM:
      input = new TreeNode(null, new XRole());
      editor = roleEditor;
View Full Code Here

Examples of com.tensegrity.palo.gwt.core.client.models.admin.XGroup

    return groups.toArray(new XGroup[0]);
  }
 
  private final boolean isSelected(XGroup group) {
    for(TableItem item : groupTable.getItems()) {
      XGroup xg = (XGroup) item.getData(MEMBER_DATA);
      if (xg.equals(group)) {
        boolean selected = false;
        Object colVal = item.getValue(0);
        if(colVal instanceof CheckBox)
          selected = ((CheckBox)colVal).getValue();
        else if(colVal instanceof Boolean)
View Full Code Here

Examples of com.tensegrity.palo.gwt.core.client.models.admin.XGroup

            impossibleMsg = messages.impossibleToDeleteUser(user.getLogin());
          } else {
            confirmMsg = messages.deleteUser(user.getLogin());
          }
        } else if (type.equals(XGroup.TYPE)) {
          XGroup group = (XGroup) node.getXObject();
          if (group != null && group.getName() != null &&
              group.getName().equalsIgnoreCase("admin")) {
            impossibleMsg = messages.impossibleToDeleteGroup(group.getName());
          } else {
            confirmMsg = messages.deleteGroup(group.getName());
          }
        } else if (type.equals(XRole.TYPE)) {
          XRole role = (XRole) node.getXObject();
          if (role != null && role.getName() != null && (role.getName().equals("ADMIN") ||
            role.getName().equals("EDITOR") ||
View Full Code Here

Examples of com.tensegrity.palo.gwt.core.client.models.admin.XGroup

        .getAdministrationService(getLoggedInUser(sessionId));
    List<XGroup> xGroups = new ArrayList<XGroup>();
    User forUser = getNativeUser(sessionId, xUser);
    if (forUser != null) {
      for (Group group : adminService.getGroups(forUser)) {
        XGroup xGroup = (XGroup) XConverter.createX(group);
        xGroup.clearRoleNames();
        for (Role r: group.getRoles()) {
          xGroup.addRoleName(r.getName());
        }
        xGroups.add(xGroup);
      }
    }
    return xGroups.toArray(new XGroup[0]);
View Full Code Here

Examples of xscript.compiler.XTree.XGroup

  private XStatement makeGroup() {
    startLineBlock();
    expected(XTokenKind.LGROUP);
    XStatement statement = makeInnerStatement();
    expected(XTokenKind.RGROUP);
    return new XGroup(endLineBlock(), statement);
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.