Context.Default
Constructor and Description |
---|
Context.Default() |
Modifier and Type | Method and Description |
---|---|
boolean |
definesContextRoot(Tree tree)
Reveals if the specified
Tree is the root of a subtree defined by
the security module that exposes this Context instance. |
boolean |
definesLocation(TreeLocation location)
Reveals if the specified
TreeLocation is defined by the security
module that exposes this Context instance. |
boolean |
definesProperty(Tree parent,
PropertyState property)
Reveals if the specified
PropertyState is defined by the security
module that exposes this Context instance. |
boolean |
definesTree(Tree tree)
Reveals if the specified
Tree is defined by the security
module that exposes this Context instance. |
public boolean definesProperty(Tree parent, PropertyState property)
Context
PropertyState
is defined by the security
module that exposes this Context
instance.definesProperty
in interface Context
parent
- The parent tree of the property state.property
- The PropertyState
to be tested.true
if the specified property state is related to or
defined by the security module.public boolean definesContextRoot(Tree tree)
Context
Tree
is the root of a subtree defined by
the security module that exposes this Context
instance. Note,
that in contrast to Context.definesTree(org.apache.jackrabbit.oak.api.Tree)
this method will only return false
for any tree located in the
subtree.definesContextRoot
in interface Context
tree
- The tree to be tested.true
if the specified tree is the root of a subtree of items
that are defined by the security module.public boolean definesTree(Tree tree)
Context
Tree
is defined by the security
module that exposes this Context
instance.definesTree
in interface Context
tree
- The tree to be tested.true
if the specified tree is related to or defined by the
security module.public boolean definesLocation(TreeLocation location)
Context
TreeLocation
is defined by the security
module that exposes this Context
instance.definesLocation
in interface Context
location
- The tree location to be tested.true
if the specified tree location is related to or
defined by the security module."Copyright © 2006 - 2015 Adobe Systems Incorporated. All Rights Reserved"