@Test public void testCreateGroup() throws RepositoryException { UserProvider up = createUserProvider(); Tree groupTree = up.createGroup("group1", null); assertNotNull(groupTree); assertTrue(Text.isDescendant(defaultGroupPath, groupTree.getPath())); int level = defaultConfig.getConfigValue(UserConstants.PARAM_DEFAULT_DEPTH, UserConstants.DEFAULT_DEPTH) + 1; assertEquals(defaultGroupPath, Text.getRelativeParent(groupTree.getPath(), level)); }
@NotNull Tree createGroup(@NotNull String groupID, @Nullable String intermediateJcrPath) throws RepositoryException { return createAuthorizableNode(groupID, NT_REP_GROUP, intermediateJcrPath); }
UserProvider extends AuthorizableBaseProvider { @NotNull Tree createGroup(@NotNull String groupID, @Nullable String intermediateJcrPath) throws RepositoryException { return createAuthorizableNode(groupID, NT_REP_GROUP, intermediateJcrPath); } }
UserProvider extends AuthorizableBaseProvider { @NotNull Tree createGroup(@NotNull String groupID, @Nullable String intermediateJcrPath) throws RepositoryException { return createAuthorizableNode(groupID, NT_REP_GROUP, intermediateJcrPath); } UserProvider(@NotNull Root root, @NotNull ConfigurationParameters config); }
UserProvider extends AuthorizableBaseProvider { @NotNull Tree createGroup(@NotNull String groupID, @Nullable String intermediateJcrPath) throws RepositoryException { return createAuthorizableNode(groupID, NT_REP_GROUP, intermediateJcrPath); } UserProvider(@NotNull Root root, @NotNull ConfigurationParameters config);  }
UserProvider extends AuthorizableBaseProvider { @NotNull Tree createGroup(@NotNull String groupID, @Nullable String intermediateJcrPath) throws RepositoryException { return createAuthorizableNode(groupID, NT_REP_GROUP, intermediateJcrPath); } UserProvider(@NotNull Root root, @NotNull ConfigurationParameters config);   }