/** * Get an array of all of the special groups that current user is a member * of. * * @return list of groups * @throws SQLException if database error */ public List<Group> getSpecialGroups() throws SQLException { List<Group> myGroups = new ArrayList<Group>(); for (UUID groupId : specialGroups) { myGroups.add(EPersonServiceFactory.getInstance().getGroupService().find(this, groupId)); } return myGroups; }
List<Group> result = new ArrayList<>(); for (UUID uuid : sessionGroupIds) { result.add(groupService.find(context, uuid));
if (containerType == Constants.COLLECTION) { Collection collection = collectionService.find(c, containerID); Group group = groupService.find(c, groupID);