Interface TreeContext
- All Known Subinterfaces:
Context
- All Known Implementing Classes:
Context.Default
public interface TreeContext
TreeContext
represents item related information in relation to a
dedicated module.
This information allows to determine if a given Tree
or PropertyState
is defined by or related to the model provided by a given setup.-
Method Summary
Modifier and TypeMethodDescriptionboolean
definesContextRoot
(@NotNull Tree tree) Reveals if the specifiedTree
is the root of a subtree defined by the module that exposes this instance.boolean
definesInternal
(@NotNull Tree tree) Reveals if the specifiedTree
defines repository internal information, which is not hidden by default.boolean
definesLocation
(@NotNull TreeLocation location) Reveals if the specifiedTreeLocation
is defined by the module that exposes this instance.boolean
definesProperty
(@NotNull Tree parent, @NotNull PropertyState property) Reveals if the specifiedPropertyState
is defined by the module that exposes this instance.boolean
definesTree
(@NotNull Tree tree) Reveals if the specifiedTree
is defined by the module that exposes this instance.
-
Method Details
-
definesProperty
Reveals if the specifiedPropertyState
is defined by the module that exposes this instance.- Parameters:
parent
- The parent tree of the property state.property
- ThePropertyState
to be tested.- Returns:
true
if the specified property state is related to or defined by the security module.
-
definesContextRoot
Reveals if the specifiedTree
is the root of a subtree defined by the module that exposes this instance. Note, that in contrast todefinesTree(Tree)
this method will returnfalse
for any tree located in the subtree.- Parameters:
tree
- The tree to be tested.- Returns:
true
if the specified tree is the root of a subtree of items that are defined by the security module.
-
definesTree
Reveals if the specifiedTree
is defined by the module that exposes this instance.- Parameters:
tree
- The tree to be tested.- Returns:
true
if the specified tree is related to or defined by the security module.
-
definesLocation
Reveals if the specifiedTreeLocation
is defined by the module that exposes this instance.- Parameters:
location
- The tree location to be tested.- Returns:
true
if the specified tree location is related to or defined by the security module.
-
definesInternal
Reveals if the specifiedTree
defines repository internal information, which is not hidden by default.- Parameters:
tree
- The tree to be tested.- Returns:
true
if the specified tree defines repository internal information.- See Also:
-