test_class.declarator: tree
test_class.modifier: private
test_class.original_string: private Tree tree;
test_class.type: Tree
test_class.var_name: tree
test_class.declarator: pp
test_class.modifier: private
test_class.original_string: private PrincipalBasedPermissionProvider pp;
test_class.type: PrincipalBasedPermissionProvider
test_class.var_name: pp
test_class.file: oak-authorization-principalbased/src/test/java/org/apache/jackrabbit/oak/spi/security/authorization/principalbased/impl/AbstractTreePermissionTest.java
test_class.identifier: AbstractTreePermissionTest
test_case.body: @Test
      public void testIsGrantedWithProperty() {
          PropertyState ps = mock(PropertyState.class);
  
          AbstractTreePermission atp = createAbstractTreePermission(tree, TreeType.VERSION, pp);
          atp.isGranted(Permissions.SET_PROPERTY|Permissions.VERSION_MANAGEMENT, ps);
  
          verify(pp, times(1)).isGranted(tree, ps, Permissions.SET_PROPERTY|Permissions.VERSION_MANAGEMENT);
          verify(pp, never()).isGranted(tree, null, Permissions.SET_PROPERTY|Permissions.VERSION_MANAGEMENT);
      }
test_case.class_method_signature: AbstractTreePermissionTest.testIsGrantedWithProperty()
test_case.full_signature: @Test public void testIsGrantedWithProperty()
test_case.identifier: testIsGrantedWithProperty
test_case.invocations: mock createAbstractTreePermission isGranted isGranted verify times isGranted verify never
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testIsGrantedWithProperty()
focal_class.declarator: tree
focal_class.modifier: private final
focal_class.original_string: private final Tree tree;
focal_class.type: Tree
focal_class.var_name: tree
focal_class.declarator: type
focal_class.modifier: private final
focal_class.original_string: private final TreeType type;
focal_class.type: TreeType
focal_class.var_name: type
focal_class.file: oak-authorization-principalbased/src/main/java/org/apache/jackrabbit/oak/spi/security/authorization/principalbased/impl/AbstractTreePermission.java
focal_class.identifier: AbstractTreePermission
focal_class.interfaces: implements TreePermission
focal_class.class_method_signature: AbstractTreePermission.AbstractTreePermission(@NotNull Tree tree, @NotNull TreeType type)
focal_class.full_signature:   AbstractTreePermission(@NotNull Tree tree, @NotNull TreeType type)
focal_class.identifier: AbstractTreePermission
focal_class.parameters: (@NotNull Tree tree, @NotNull TreeType type)
focal_class.signature:  AbstractTreePermission(@NotNull Tree tree, @NotNull TreeType type)
focal_class.class_method_signature: AbstractTreePermission.getPermissionProvider()
focal_class.full_signature: abstract PrincipalBasedPermissionProvider getPermissionProvider()
focal_class.identifier: getPermissionProvider
focal_class.modifiers: abstract
focal_class.parameters: ()
focal_class.return: PrincipalBasedPermissionProvider
focal_class.signature: PrincipalBasedPermissionProvider getPermissionProvider()
focal_class.class_method_signature: AbstractTreePermission.getTree()
focal_class.full_signature: @NotNull Tree getTree()
focal_class.identifier: getTree
focal_class.modifiers: @NotNull
focal_class.parameters: ()
focal_class.return: Tree
focal_class.signature: Tree getTree()
focal_class.class_method_signature: AbstractTreePermission.getType()
focal_class.full_signature: @NotNull TreeType getType()
focal_class.identifier: getType
focal_class.modifiers: @NotNull
focal_class.parameters: ()
focal_class.return: TreeType
focal_class.signature: TreeType getType()
focal_class.class_method_signature: AbstractTreePermission.getChildPermission(@NotNull String childName, @NotNull NodeState childState)
focal_class.full_signature: @Override public @NotNull TreePermission getChildPermission(@NotNull String childName, @NotNull NodeState childState)
focal_class.identifier: getChildPermission
focal_class.modifiers: @Override public @NotNull
focal_class.parameters: (@NotNull String childName, @NotNull NodeState childState)
focal_class.return: TreePermission
focal_class.signature: TreePermission getChildPermission(@NotNull String childName, @NotNull NodeState childState)
focal_class.class_method_signature: AbstractTreePermission.canRead()
focal_class.full_signature: @Override public boolean canRead()
focal_class.identifier: canRead
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean canRead()
focal_class.class_method_signature: AbstractTreePermission.canRead(@NotNull PropertyState property)
focal_class.full_signature: @Override public boolean canRead(@NotNull PropertyState property)
focal_class.identifier: canRead
focal_class.modifiers: @Override public
focal_class.parameters: (@NotNull PropertyState property)
focal_class.return: boolean
focal_class.signature: boolean canRead(@NotNull PropertyState property)
focal_class.class_method_signature: AbstractTreePermission.canReadAll()
focal_class.full_signature: @Override public boolean canReadAll()
focal_class.identifier: canReadAll
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean canReadAll()
focal_class.class_method_signature: AbstractTreePermission.canReadProperties()
focal_class.full_signature: @Override public boolean canReadProperties()
focal_class.identifier: canReadProperties
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean canReadProperties()
focal_class.class_method_signature: AbstractTreePermission.isGranted(long permissions)
focal_class.full_signature: @Override public boolean isGranted(long permissions)
focal_class.identifier: isGranted
focal_class.modifiers: @Override public
focal_class.parameters: (long permissions)
focal_class.return: boolean
focal_class.signature: boolean isGranted(long permissions)
focal_class.class_method_signature: AbstractTreePermission.isGranted(long permissions, @NotNull PropertyState property)
focal_class.full_signature: @Override public boolean isGranted(long permissions, @NotNull PropertyState property)
focal_class.identifier: isGranted
focal_class.modifiers: @Override public
focal_class.parameters: (long permissions, @NotNull PropertyState property)
focal_class.return: boolean
focal_class.signature: boolean isGranted(long permissions, @NotNull PropertyState property)
focal_method.body: @Override
      public boolean isGranted(long permissions) {
          return getPermissionProvider().isGranted(tree, null, permissions);
      }
focal_method.class_method_signature: AbstractTreePermission.isGranted(long permissions)
focal_method.full_signature: @Override public boolean isGranted(long permissions)
focal_method.identifier: isGranted
focal_method.invocations: isGranted getPermissionProvider
focal_method.modifiers: @Override public
focal_method.parameters: (long permissions)
focal_method.return: boolean
focal_method.signature: boolean isGranted(long permissions)