172173174175176177178179180181182
groupPermissions.setCanView(true); groupPermissions.setCanDelete(false); groupPermissions.setCanEdit(true); if(groupEntity == null) { groupEntity = new GroupEntity(); groupEntity.setGroupname("cmfAdmin"); contentManager.saveGroup(groupEntity); }
198199200201202203204205206207208
7677787980818283848586
List<Group> result = Collections.emptyList(); SyncopeUser user = userDAO.find(userId); if (user != null) { result = new ArrayList<Group>(); for (Long roleId : user.getRoleIds()) { result.add(new GroupEntity(roleId.toString())); } } return result; }
606162636465666768697071727374757677
throw new UnsupportedOperationException(); } @Override public GroupEntity findGroupById(final String groupId) { GroupEntity result = null; SyncopeRole role = null; try { role = roleDAO.find(Long.valueOf(groupId)); } catch (NumberFormatException e) { } if (role != null) { result = new GroupEntity(groupId); } return result; }
8182838485868788899091
9596979899100101
public GroupQuery desc() { return this; } private Group fromSyncopeRole(SyncopeRole role) { return new GroupEntity(role.getId().toString()); }
7879808182838485868788
6667686970717273747576
616263646566676869707172737475767778