public ArrayList<EPerson> getAllUniqueMembers(Context context) throws SQLException { HashMap<UUID, EPerson> epersonsMap = new HashMap(); for (EPerson eperson : epersons) { epersonsMap.put(eperson.getID(), eperson); } for (Group group : groups) { for (EPerson eperson : groupService.allMembers(context, group)) { epersonsMap.put(eperson.getID(), eperson); } } return new ArrayList<>(epersonsMap.values()); } }
Group wfGroup = collectionService.getWorkflowGroup(wfi.getCollection(), step); if (wfGroup != null) { epList.addAll(groupService.allMembers(c, wfGroup)); Group adGroup = wfi.getCollection().getAdministrators(); if (adGroup != null) { epList.addAll(groupService.allMembers(c, adGroup)); epList.addAll(groupService.allMembers(c, group));
createTaskForEPerson(c, wfi, step, nextAction, workflowItemRole.getEPerson()); } else { List<EPerson> members = groupService.allMembers(c, workflowItemRole.getGroup()); for (EPerson member : members) { createTaskForEPerson(c, wfi, step, nextAction, member);
List<EPerson> epa = groupService.allMembers(context, workflowStepGroup);