@Test public void testGroupPrincipal() throws Exception { Principal groupPrincipal = group.getPrincipal(); assertTrue(groupPrincipal instanceof AbstractGroupPrincipal); AbstractGroupPrincipal agp = (AbstractGroupPrincipal) groupPrincipal; assertSame(uMgr, agp.getUserManager()); assertEquals(group.isEveryone(), agp.isEveryone()); }
@NotNull @Override public Principal getPrincipal() throws RepositoryException { return new GroupPrincipal(getPrincipalName(), getTree()); }
GroupImpl extends AuthorizableImpl implements Group { @NotNull @Override public Principal getPrincipal() throws RepositoryException { return new GroupPrincipal(getPrincipalName(), getTree()); } }
GroupImpl extends AuthorizableImpl implements Group { @NotNull @Override public Principal getPrincipal() throws RepositoryException { return new GroupPrincipal(getPrincipalName(), getTree()); } GroupImpl(String id, Tree tree, UserManagerImpl userManager); }
GroupImpl extends AuthorizableImpl implements Group { @NotNull @Override public Principal getPrincipal() throws RepositoryException { return new GroupPrincipal(getPrincipalName(), getTree()); } 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 Principal getPrincipal() throws RepositoryException { return new GroupPrincipal(getPrincipalName(), getTree()); } 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);  }