@Test public void removeMemberEPerson() throws SQLException, AuthorizeException, EPersonDeletionException, IOException { EPerson ePerson = null; try { ePerson = createEPersonAndAddToGroup("removeMemberEPerson@dspace.org", level2Group); context.setCurrentUser(ePerson); assertTrue(groupService.isMember(context, topGroup)); assertTrue(groupService.isMember(context, level1Group)); assertTrue(groupService.isMember(context, level2Group)); groupService.removeMember(context, level2Group, ePerson); assertFalse(groupService.isMember(context, topGroup)); assertFalse(groupService.isMember(context, level1Group)); assertFalse(groupService.isMember(context, level2Group)); groupService.addMember(context, level2Group, ePerson); assertTrue(groupService.isMember(context, topGroup)); assertTrue(groupService.isMember(context, level1Group)); assertTrue(groupService.isMember(context, level2Group)); groupService.removeMember(context, topGroup, ePerson); assertTrue(groupService.isMember(context, topGroup)); assertTrue(groupService.isMember(context, level1Group)); assertTrue(groupService.isMember(context, level2Group)); } finally { if (ePerson != null) { context.turnOffAuthorisationSystem(); ePersonService.delete(context, ePerson); } } }
void addMember(EPerson e) { getMembers().add(e); }
Group extends DSpaceObject implements DSpaceObjectLegacySupport { void addMember(EPerson e) { getMembers().add(e); } }
Group extends DSpaceObject implements DSpaceObjectLegacySupport { void addMember(EPerson e) { getMembers().add(e); } protected  Group(); }
Group extends DSpaceObject implements DSpaceObjectLegacySupport { void addMember(EPerson e) { getMembers().add(e); } protected  Group(); List<EPerson> getMembers(); List<Group> getMemberGroups(); @Override boolean equals(Object obj); @Override int hashCode(); @Override int getType(); @Override String getName(); boolean isGroupsChanged(); void clearGroupsChanged(); @Override Integer getLegacyId(); List<WorkspaceItem> getSupervisedItems(); Boolean isPermanent(); }
Group extends DSpaceObject implements DSpaceObjectLegacySupport { void addMember(EPerson e) { getMembers().add(e); } protected  Group(); List<EPerson> getMembers(); List<Group> getMemberGroups(); @Override boolean equals(Object obj); @Override int hashCode(); @Override int getType(); @Override String getName(); boolean isGroupsChanged(); void clearGroupsChanged(); @Override Integer getLegacyId(); List<WorkspaceItem> getSupervisedItems(); Boolean isPermanent(); @Transient
    static final String ANONYMOUS; @Transient
    static final String ADMIN; }