@Test public void testRemoveMembersById() throws Exception { assertEquals(ImmutableSet.of(getTestUser().getID()), group.removeMembers("u", getTestUser().getID())); verify(dlg, times(1)).removeMembers("u", getTestUser().getID()); verify(autosaveMgr, times(1)).autosave(); }
@NotNull @Override public Set<String> removeMembers(@NotNull String... memberIds) throws RepositoryException { try { return getDelegate().removeMembers(memberIds); } finally { getMgr().autosave(); } }
GroupImpl extends AuthorizableImpl implements Group { @NotNull @Override public Set<String> removeMembers(@NotNull String... memberIds) throws RepositoryException { try { return getDelegate().removeMembers(memberIds); } finally { getMgr().autosave(); } } }
GroupImpl extends AuthorizableImpl implements Group { @NotNull @Override public Set<String> removeMembers(@NotNull String... memberIds) throws RepositoryException { try { return getDelegate().removeMembers(memberIds); } finally { getMgr().autosave(); } } GroupImpl(Group dlg, AutoSaveEnabledManager mgr); }
GroupImpl extends AuthorizableImpl implements Group { @NotNull @Override public Set<String> removeMembers(@NotNull String... memberIds) throws RepositoryException { try { return getDelegate().removeMembers(memberIds); } finally { getMgr().autosave(); } } GroupImpl(Group dlg, AutoSaveEnabledManager mgr); @NotNull @Override Iterator<Authorizable> getDeclaredMembers(); @NotNull @Override Iterator<Authorizable> getMembers(); @Override boolean isDeclaredMember(@NotNull Authorizable authorizable); @Override boolean isMember(@NotNull Authorizable authorizable); @Override boolean addMember(@NotNull Authorizable authorizable); @NotNull @Override Set<String> addMembers(@NotNull String... memberIds); @Override boolean removeMember(@NotNull Authorizable authorizable); @NotNull @Override Set<String> removeMembers(@NotNull String... memberIds); }
GroupImpl extends AuthorizableImpl implements Group { @NotNull @Override public Set<String> removeMembers(@NotNull String... memberIds) throws RepositoryException { try { return getDelegate().removeMembers(memberIds); } finally { getMgr().autosave(); } } GroupImpl(Group dlg, AutoSaveEnabledManager mgr); @NotNull @Override Iterator<Authorizable> getDeclaredMembers(); @NotNull @Override Iterator<Authorizable> getMembers(); @Override boolean isDeclaredMember(@NotNull Authorizable authorizable); @Override boolean isMember(@NotNull Authorizable authorizable); @Override boolean addMember(@NotNull Authorizable authorizable); @NotNull @Override Set<String> addMembers(@NotNull String... memberIds); @Override boolean removeMember(@NotNull Authorizable authorizable); @NotNull @Override Set<String> removeMembers(@NotNull String... memberIds);  }