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.| Modifier and Type | Method and Description |
|---|---|
boolean |
definesContextRoot(@NotNull Tree tree)
Reveals if the specified
Tree is the root of a subtree defined by
the module that exposes this instance. |
boolean |
definesInternal(@NotNull Tree tree)
Reveals if the specified
Tree defines repository internal information,
which is not hidden by default. |
boolean |
definesLocation(@NotNull TreeLocation location)
Reveals if the specified
TreeLocation is defined by the
module that exposes this instance. |
boolean |
definesProperty(@NotNull Tree parent,
@NotNull PropertyState property)
Reveals if the specified
PropertyState is defined by the
module that exposes this instance. |
boolean |
definesTree(@NotNull Tree tree)
Reveals if the specified
Tree is defined by the
module that exposes this instance. |
boolean definesProperty(@NotNull
@NotNull Tree parent,
@NotNull
@NotNull PropertyState property)
PropertyState is defined by the
module that exposes this instance.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.boolean definesContextRoot(@NotNull
@NotNull Tree tree)
Tree is the root of a subtree defined by
the module that exposes this instance. Note,
that in contrast to definesTree(Tree)
this method will return false for any tree located in the
subtree.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.boolean definesTree(@NotNull
@NotNull Tree tree)
Tree is defined by the
module that exposes this instance.tree - The tree to be tested.true if the specified tree is related to or defined by the
security module.boolean definesLocation(@NotNull
@NotNull TreeLocation location)
TreeLocation is defined by the
module that exposes this instance.location - The tree location to be tested.true if the specified tree location is related to or
defined by the security module.boolean definesInternal(@NotNull
@NotNull Tree tree)
Tree defines repository internal information,
which is not hidden by default.tree - The tree to be tested.true if the specified tree defines repository internal information.NodeStateUtils.isHidden(String),
NodeStateUtils.isHiddenPath(String)Copyright © 2010 - 2023 Adobe. All Rights Reserved