@Test public void testImpactOfOak8054RemovingMembers() throws Exception { User user = uMgr.createUser("userid", null); UserProvider up = new UserProvider(root, ConfigurationParameters.EMPTY); Tree groupTree = root.getTree(group.getPath()); groupTree.setProperty(REP_MEMBERS, ImmutableList.of(up.getContentID(getTestUser().getID()), up.getContentID(user.getID())), Type.STRINGS); root.commit(); group.removeMembers(user.getID()); root.commit(); groupTree = root.getTree(group.getPath()); PropertyState membersProp = groupTree.getProperty(REP_MEMBERS); assertEquals(Type.WEAKREFERENCES, membersProp.getType()); assertEquals(1, membersProp.count()); }
@NotNull @Override public Set<String> removeMembers(@NotNull String... memberIds) throws RepositoryException { return updateMembers(true, memberIds); }
GroupImpl extends AuthorizableImpl implements Group { @NotNull @Override public Set<String> removeMembers(@NotNull String... memberIds) throws RepositoryException { return updateMembers(true, memberIds); } }
GroupImpl extends AuthorizableImpl implements Group { @NotNull @Override public Set<String> removeMembers(@NotNull String... memberIds) throws RepositoryException { return updateMembers(true, memberIds); } GroupImpl(String id, Tree tree, UserManagerImpl userManager); }
GroupImpl extends AuthorizableImpl implements Group { @NotNull @Override public Set<String> removeMembers(@NotNull String... memberIds) throws RepositoryException { return updateMembers(true, memberIds); } GroupImpl(String id, Tree tree, UserManagerImpl userManager); @Override boolean isGroup(); @NotNull @Override Principal getPrincipal(); @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 { return updateMembers(true, memberIds); } GroupImpl(String id, Tree tree, UserManagerImpl userManager); @Override boolean isGroup(); @NotNull @Override Principal getPrincipal(); @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);  }