@Test(expected = IllegalArgumentException.class) public void testCheckValidTree() throws Exception { new GroupImpl(getTestUser().getID(), root.getTree(getTestUser().getPath()), uMgr); }
@Override void checkValidTree(@NotNull Tree tree) { if (!UserUtil.isType(tree, AuthorizableType.GROUP)) { throw new IllegalArgumentException("Invalid group node: node type rep:Group expected."); } }
GroupImpl extends AuthorizableImpl implements Group { @Override void checkValidTree(@NotNull Tree tree) { if (!UserUtil.isType(tree, AuthorizableType.GROUP)) { throw new IllegalArgumentException("Invalid group node: node type rep:Group expected."); } } }
GroupImpl extends AuthorizableImpl implements Group { @Override void checkValidTree(@NotNull Tree tree) { if (!UserUtil.isType(tree, AuthorizableType.GROUP)) { throw new IllegalArgumentException("Invalid group node: node type rep:Group expected."); } } GroupImpl(String id, Tree tree, UserManagerImpl userManager); }
GroupImpl extends AuthorizableImpl implements Group { @Override void checkValidTree(@NotNull Tree tree) { if (!UserUtil.isType(tree, AuthorizableType.GROUP)) { throw new IllegalArgumentException("Invalid group node: node type rep:Group expected."); } } 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 { @Override void checkValidTree(@NotNull Tree tree) { if (!UserUtil.isType(tree, AuthorizableType.GROUP)) { throw new IllegalArgumentException("Invalid group node: node type rep:Group expected."); } } 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);  }