test_class.file: oak-core/src/test/java/org/apache/jackrabbit/oak/security/authorization/AuthorizationContextTest.java
test_class.identifier: AuthorizationContextTest
test_class.superclass: extends AbstractSecurityTest
test_case.body: @Test
      public void testGetTypeWithDefaultParentType() throws Exception {
          TreeTypeProvider ttp = new TreeTypeProvider(AuthorizationContext.getInstance());
          for (TypeTest test : TypeTest.createTests(root)) {
              TreeType typeIfParentDefault = ttp.getType(root.getTree(test.path), TreeType.DEFAULT);
  
              if (TreeType.DEFAULT == test.parentType) {
                  assertEquals(test.path, test.type, typeIfParentDefault);
              } else {
                  assertNotEquals(test.path, test.type, typeIfParentDefault);
              }
          }
      }
test_case.class_method_signature: AuthorizationContextTest.testGetTypeWithDefaultParentType()
test_case.full_signature: @Test public void testGetTypeWithDefaultParentType()
test_case.identifier: testGetTypeWithDefaultParentType
test_case.invocations: getInstance createTests getType getTree assertEquals assertNotEquals
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testGetTypeWithDefaultParentType()
focal_class.declarator: NODE_NAMES = POLICY_NODE_NAMES.toArray(new String[0])
focal_class.modifier: private static final
focal_class.original_string: private static final String[] NODE_NAMES = POLICY_NODE_NAMES.toArray(new String[0]);
focal_class.type: String[]
focal_class.var_name: NODE_NAMES
focal_class.declarator: PROPERTY_NAMES = ACE_PROPERTY_NAMES.toArray(new String[0])
focal_class.modifier: private static final
focal_class.original_string: private static final String[] PROPERTY_NAMES = ACE_PROPERTY_NAMES.toArray(new String[0]);
focal_class.type: String[]
focal_class.var_name: PROPERTY_NAMES
focal_class.declarator: NT_NAMES = Iterables.toArray(Iterables.concat(AC_NODETYPE_NAMES, PERMISSION_NODETYPE_NAMES), String.class)
focal_class.modifier: private static final
focal_class.original_string: private static final String[] NT_NAMES = Iterables.toArray(Iterables.concat(AC_NODETYPE_NAMES, PERMISSION_NODETYPE_NAMES), String.class);
focal_class.type: String[]
focal_class.var_name: NT_NAMES
focal_class.declarator: INSTANCE = new AuthorizationContext()
focal_class.modifier: private static final
focal_class.original_string: private static final Context INSTANCE = new AuthorizationContext();
focal_class.type: Context
focal_class.var_name: INSTANCE
focal_class.file: oak-core/src/main/java/org/apache/jackrabbit/oak/security/authorization/AuthorizationContext.java
focal_class.identifier: AuthorizationContext
focal_class.interfaces: implements Context, AccessControlConstants, PermissionConstants
focal_class.class_method_signature: AuthorizationContext.AuthorizationContext()
focal_class.full_signature: private  AuthorizationContext()
focal_class.identifier: AuthorizationContext
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.signature:  AuthorizationContext()
focal_class.class_method_signature: AuthorizationContext.getInstance()
focal_class.full_signature: static Context getInstance()
focal_class.identifier: getInstance
focal_class.modifiers: static
focal_class.parameters: ()
focal_class.return: Context
focal_class.signature: Context getInstance()
focal_class.class_method_signature: AuthorizationContext.definesProperty(@NotNull Tree parent, @NotNull PropertyState property)
focal_class.full_signature: @Override public boolean definesProperty(@NotNull Tree parent, @NotNull PropertyState property)
focal_class.identifier: definesProperty
focal_class.modifiers: @Override public
focal_class.parameters: (@NotNull Tree parent, @NotNull PropertyState property)
focal_class.return: boolean
focal_class.signature: boolean definesProperty(@NotNull Tree parent, @NotNull PropertyState property)
focal_class.class_method_signature: AuthorizationContext.definesContextRoot(@NotNull Tree tree)
focal_class.full_signature: @Override public boolean definesContextRoot(@NotNull Tree tree)
focal_class.identifier: definesContextRoot
focal_class.modifiers: @Override public
focal_class.parameters: (@NotNull Tree tree)
focal_class.return: boolean
focal_class.signature: boolean definesContextRoot(@NotNull Tree tree)
focal_class.class_method_signature: AuthorizationContext.definesTree(@NotNull Tree tree)
focal_class.full_signature: @Override public boolean definesTree(@NotNull Tree tree)
focal_class.identifier: definesTree
focal_class.modifiers: @Override public
focal_class.parameters: (@NotNull Tree tree)
focal_class.return: boolean
focal_class.signature: boolean definesTree(@NotNull Tree tree)
focal_class.class_method_signature: AuthorizationContext.definesLocation(@NotNull TreeLocation location)
focal_class.full_signature: @Override public boolean definesLocation(@NotNull TreeLocation location)
focal_class.identifier: definesLocation
focal_class.modifiers: @Override public
focal_class.parameters: (@NotNull TreeLocation location)
focal_class.return: boolean
focal_class.signature: boolean definesLocation(@NotNull TreeLocation location)
focal_class.class_method_signature: AuthorizationContext.definesInternal(@NotNull Tree tree)
focal_class.full_signature: @Override public boolean definesInternal(@NotNull Tree tree)
focal_class.identifier: definesInternal
focal_class.modifiers: @Override public
focal_class.parameters: (@NotNull Tree tree)
focal_class.return: boolean
focal_class.signature: boolean definesInternal(@NotNull Tree tree)
focal_class.class_method_signature: AuthorizationContext.isNodeName(@NotNull String name)
focal_class.full_signature: private static boolean isNodeName(@NotNull String name)
focal_class.identifier: isNodeName
focal_class.modifiers: private static
focal_class.parameters: (@NotNull String name)
focal_class.return: boolean
focal_class.signature: boolean isNodeName(@NotNull String name)
focal_class.class_method_signature: AuthorizationContext.isItemName(@NotNull String name)
focal_class.full_signature: private static boolean isItemName(@NotNull String name)
focal_class.identifier: isItemName
focal_class.modifiers: private static
focal_class.parameters: (@NotNull String name)
focal_class.return: boolean
focal_class.signature: boolean isItemName(@NotNull String name)
focal_class.class_method_signature: AuthorizationContext.isNtName(@NotNull String name)
focal_class.full_signature: private static boolean isNtName(@NotNull String name)
focal_class.identifier: isNtName
focal_class.modifiers: private static
focal_class.parameters: (@NotNull String name)
focal_class.return: boolean
focal_class.signature: boolean isNtName(@NotNull String name)
focal_method.body: static Context getInstance() {
          return INSTANCE;
      }
focal_method.class_method_signature: AuthorizationContext.getInstance()
focal_method.full_signature: static Context getInstance()
focal_method.identifier: getInstance
focal_method.modifiers: static
focal_method.parameters: ()
focal_method.return: Context
focal_method.signature: Context getInstance()