Interface TreeContext
-
- All Known Subinterfaces:
Context
- All Known Implementing Classes:
Context.Default
public interface TreeContextTreeContextrepresents item related information in relation to a dedicated module. This information allows to determine if a givenTreeorPropertyStateis defined by or related to the model provided by a given setup.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleandefinesContextRoot(@NotNull Tree tree)Reveals if the specifiedTreeis the root of a subtree defined by the module that exposes this instance.booleandefinesInternal(@NotNull Tree tree)Reveals if the specifiedTreedefines repository internal information, which is not hidden by default.booleandefinesLocation(@NotNull TreeLocation location)Reveals if the specifiedTreeLocationis defined by the module that exposes this instance.booleandefinesProperty(@NotNull Tree parent, @NotNull PropertyState property)Reveals if the specifiedPropertyStateis defined by the module that exposes this instance.booleandefinesTree(@NotNull Tree tree)Reveals if the specifiedTreeis defined by the module that exposes this instance.
-
-
-
Method Detail
-
definesProperty
boolean definesProperty(@NotNull @NotNull Tree parent, @NotNull @NotNull PropertyState property)Reveals if the specifiedPropertyStateis defined by the module that exposes this instance.- Parameters:
parent- The parent tree of the property state.property- ThePropertyStateto be tested.- Returns:
trueif the specified property state is related to or defined by the security module.
-
definesContextRoot
boolean definesContextRoot(@NotNull @NotNull Tree tree)Reveals if the specifiedTreeis the root of a subtree defined by the module that exposes this instance. Note, that in contrast todefinesTree(Tree)this method will returnfalsefor any tree located in the subtree.- Parameters:
tree- The tree to be tested.- Returns:
trueif the specified tree is the root of a subtree of items that are defined by the security module.
-
definesTree
boolean definesTree(@NotNull @NotNull Tree tree)Reveals if the specifiedTreeis defined by the module that exposes this instance.- Parameters:
tree- The tree to be tested.- Returns:
trueif the specified tree is related to or defined by the security module.
-
definesLocation
boolean definesLocation(@NotNull @NotNull TreeLocation location)Reveals if the specifiedTreeLocationis defined by the module that exposes this instance.- Parameters:
location- The tree location to be tested.- Returns:
trueif the specified tree location is related to or defined by the security module.
-
definesInternal
boolean definesInternal(@NotNull @NotNull Tree tree)Reveals if the specifiedTreedefines repository internal information, which is not hidden by default.- Parameters:
tree- The tree to be tested.- Returns:
trueif the specified tree defines repository internal information.- See Also:
NodeStateUtils.isHidden(String),NodeStateUtils.isHiddenPath(String)
-
-