test_class.file: oak-security-spi/src/test/java/org/apache/jackrabbit/oak/spi/security/user/util/UserUtilTest.java
test_class.identifier: UserUtilTest
test_case.body: @Test
      public void testGetAuthorizableIdWithType() {
          Map<AuthorizableType, String[]> test = ImmutableMap.<AuthorizableType,String[]>builder().
                  put(AuthorizableType.USER, new String[] {UserConstants.NT_REP_USER, UserConstants.NT_REP_SYSTEM_USER}).
                  put(AuthorizableType.AUTHORIZABLE, new String[] {UserConstants.NT_REP_USER, UserConstants.NT_REP_SYSTEM_USER, UserConstants.NT_REP_GROUP}).
                  put(AuthorizableType.GROUP, new String[] {UserConstants.NT_REP_GROUP}).build();
  
          for (AuthorizableType type : test.keySet()) {
              for (String ntName : test.get(type)) {
                  assertEquals("id", UserUtil.getAuthorizableId(createTree(ntName, "id"), type));
              }
          }
      }
test_case.class_method_signature: UserUtilTest.testGetAuthorizableIdWithType()
test_case.full_signature: @Test public void testGetAuthorizableIdWithType()
test_case.identifier: testGetAuthorizableIdWithType
test_case.invocations: build put put put builder keySet get assertEquals getAuthorizableId createTree
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testGetAuthorizableIdWithType()
focal_class.file: oak-security-spi/src/main/java/org/apache/jackrabbit/oak/spi/security/user/util/UserUtil.java
focal_class.identifier: UserUtil
focal_class.interfaces: implements UserConstants
focal_class.class_method_signature: UserUtil.UserUtil()
focal_class.full_signature: private  UserUtil()
focal_class.identifier: UserUtil
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.signature:  UserUtil()
focal_class.class_method_signature: UserUtil.isAdmin(@NotNull ConfigurationParameters parameters, @NotNull String userId)
focal_class.full_signature: public static boolean isAdmin(@NotNull ConfigurationParameters parameters, @NotNull String userId)
focal_class.identifier: isAdmin
focal_class.modifiers: public static
focal_class.parameters: (@NotNull ConfigurationParameters parameters, @NotNull String userId)
focal_class.return: boolean
focal_class.signature: boolean isAdmin(@NotNull ConfigurationParameters parameters, @NotNull String userId)
focal_class.class_method_signature: UserUtil.getAdminId(@NotNull ConfigurationParameters parameters)
focal_class.full_signature: @NotNull public static String getAdminId(@NotNull ConfigurationParameters parameters)
focal_class.identifier: getAdminId
focal_class.modifiers: @NotNull public static
focal_class.parameters: (@NotNull ConfigurationParameters parameters)
focal_class.return: String
focal_class.signature: String getAdminId(@NotNull ConfigurationParameters parameters)
focal_class.class_method_signature: UserUtil.getAnonymousId(@NotNull ConfigurationParameters parameters)
focal_class.full_signature: @NotNull public static String getAnonymousId(@NotNull ConfigurationParameters parameters)
focal_class.identifier: getAnonymousId
focal_class.modifiers: @NotNull public static
focal_class.parameters: (@NotNull ConfigurationParameters parameters)
focal_class.return: String
focal_class.signature: String getAnonymousId(@NotNull ConfigurationParameters parameters)
focal_class.class_method_signature: UserUtil.isType(@Nullable Tree authorizableTree, @NotNull AuthorizableType type)
focal_class.full_signature: public static boolean isType(@Nullable Tree authorizableTree, @NotNull AuthorizableType type)
focal_class.identifier: isType
focal_class.modifiers: public static
focal_class.parameters: (@Nullable Tree authorizableTree, @NotNull AuthorizableType type)
focal_class.return: boolean
focal_class.signature: boolean isType(@Nullable Tree authorizableTree, @NotNull AuthorizableType type)
focal_class.class_method_signature: UserUtil.getType(@NotNull Tree authorizableNode)
focal_class.full_signature: @Nullable public static AuthorizableType getType(@NotNull Tree authorizableNode)
focal_class.identifier: getType
focal_class.modifiers: @Nullable public static
focal_class.parameters: (@NotNull Tree authorizableNode)
focal_class.return: AuthorizableType
focal_class.signature: AuthorizableType getType(@NotNull Tree authorizableNode)
focal_class.class_method_signature: UserUtil.getType(@Nullable String primaryTypeName)
focal_class.full_signature: @Nullable public static AuthorizableType getType(@Nullable String primaryTypeName)
focal_class.identifier: getType
focal_class.modifiers: @Nullable public static
focal_class.parameters: (@Nullable String primaryTypeName)
focal_class.return: AuthorizableType
focal_class.signature: AuthorizableType getType(@Nullable String primaryTypeName)
focal_class.class_method_signature: UserUtil.isSystemUser(@Nullable Tree authorizableTree)
focal_class.full_signature: public static boolean isSystemUser(@Nullable Tree authorizableTree)
focal_class.identifier: isSystemUser
focal_class.modifiers: public static
focal_class.parameters: (@Nullable Tree authorizableTree)
focal_class.return: boolean
focal_class.signature: boolean isSystemUser(@Nullable Tree authorizableTree)
focal_class.class_method_signature: UserUtil.getAuthorizableRootPath(@NotNull ConfigurationParameters parameters,
                                                   @Nullable AuthorizableType type)
focal_class.full_signature: @Nullable public static String getAuthorizableRootPath(@NotNull ConfigurationParameters parameters,
                                                   @Nullable AuthorizableType type)
focal_class.identifier: getAuthorizableRootPath
focal_class.modifiers: @Nullable public static
focal_class.parameters: (@NotNull ConfigurationParameters parameters,
                                                   @Nullable AuthorizableType type)
focal_class.return: String
focal_class.signature: String getAuthorizableRootPath(@NotNull ConfigurationParameters parameters,
                                                   @Nullable AuthorizableType type)
focal_class.class_method_signature: UserUtil.getAuthorizableId(@NotNull Tree authorizableTree)
focal_class.full_signature: @Nullable public static String getAuthorizableId(@NotNull Tree authorizableTree)
focal_class.identifier: getAuthorizableId
focal_class.modifiers: @Nullable public static
focal_class.parameters: (@NotNull Tree authorizableTree)
focal_class.return: String
focal_class.signature: String getAuthorizableId(@NotNull Tree authorizableTree)
focal_class.class_method_signature: UserUtil.getAuthorizableId(@NotNull Tree authorizableTree, @NotNull AuthorizableType type)
focal_class.full_signature: @NotNull public static String getAuthorizableId(@NotNull Tree authorizableTree, @NotNull AuthorizableType type)
focal_class.identifier: getAuthorizableId
focal_class.modifiers: @NotNull public static
focal_class.parameters: (@NotNull Tree authorizableTree, @NotNull AuthorizableType type)
focal_class.return: String
focal_class.signature: String getAuthorizableId(@NotNull Tree authorizableTree, @NotNull AuthorizableType type)
focal_class.class_method_signature: UserUtil.castAuthorizable(@Nullable Authorizable authorizable, Class<T> authorizableClass)
focal_class.full_signature: @Nullable public static T castAuthorizable(@Nullable Authorizable authorizable, Class<T> authorizableClass)
focal_class.identifier: castAuthorizable
focal_class.modifiers: @Nullable public static
focal_class.parameters: (@Nullable Authorizable authorizable, Class<T> authorizableClass)
focal_class.return: T
focal_class.signature: T castAuthorizable(@Nullable Authorizable authorizable, Class<T> authorizableClass)
focal_class.class_method_signature: UserUtil.getImportBehavior(@NotNull ConfigurationParameters config)
focal_class.full_signature: public static int getImportBehavior(@NotNull ConfigurationParameters config)
focal_class.identifier: getImportBehavior
focal_class.modifiers: public static
focal_class.parameters: (@NotNull ConfigurationParameters config)
focal_class.return: int
focal_class.signature: int getImportBehavior(@NotNull ConfigurationParameters config)
focal_method.body: @Nullable
      public static String getAuthorizableId(@NotNull Tree authorizableTree) {
          checkNotNull(authorizableTree);
          if (UserUtil.isType(authorizableTree, AuthorizableType.AUTHORIZABLE)) {
              PropertyState idProp = authorizableTree.getProperty(UserConstants.REP_AUTHORIZABLE_ID);
              if (idProp != null) {
                  return idProp.getValue(STRING);
              } else {
                  return Text.unescapeIllegalJcrChars(authorizableTree.getName());
              }
          }
          return null;
      }
focal_method.class_method_signature: UserUtil.getAuthorizableId(@NotNull Tree authorizableTree)
focal_method.full_signature: @Nullable public static String getAuthorizableId(@NotNull Tree authorizableTree)
focal_method.identifier: getAuthorizableId
focal_method.invocations: checkNotNull isType getProperty getValue unescapeIllegalJcrChars getName
focal_method.modifiers: @Nullable public static
focal_method.parameters: (@NotNull Tree authorizableTree)
focal_method.return: String
focal_method.signature: String getAuthorizableId(@NotNull Tree authorizableTree)