Class Context.Default
java.lang.Object
org.apache.jackrabbit.oak.spi.security.Context.Default
- All Implemented Interfaces:
TreeContext,Context
- Enclosing interface:
- Context
Default implementation of the
Context interface that always returns
false.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.jackrabbit.oak.spi.security.Context
Context.Default -
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleandefinesContextRoot(@NotNull org.apache.jackrabbit.oak.api.Tree tree) Reveals if the specifiedTreeis the root of a subtree defined by the module that exposes this instance.booleandefinesInternal(@NotNull org.apache.jackrabbit.oak.api.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 org.apache.jackrabbit.oak.api.Tree parent, @NotNull org.apache.jackrabbit.oak.api.PropertyState property) Reveals if the specifiedPropertyStateis defined by the module that exposes this instance.booleandefinesTree(@NotNull org.apache.jackrabbit.oak.api.Tree tree) Reveals if the specifiedTreeis defined by the module that exposes this instance.
-
Constructor Details
-
Default
public Default()
-
-
Method Details
-
definesProperty
public boolean definesProperty(@NotNull @NotNull org.apache.jackrabbit.oak.api.Tree parent, @NotNull @NotNull org.apache.jackrabbit.oak.api.PropertyState property) Description copied from interface:TreeContextReveals if the specifiedPropertyStateis defined by the module that exposes this instance.- Specified by:
definesPropertyin interfaceTreeContext- 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
public boolean definesContextRoot(@NotNull @NotNull org.apache.jackrabbit.oak.api.Tree tree) Description copied from interface:TreeContextReveals if the specifiedTreeis the root of a subtree defined by the module that exposes this instance. Note, that in contrast toTreeContext.definesTree(Tree)this method will returnfalsefor any tree located in the subtree.- Specified by:
definesContextRootin interfaceTreeContext- 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
public boolean definesTree(@NotNull @NotNull org.apache.jackrabbit.oak.api.Tree tree) Description copied from interface:TreeContextReveals if the specifiedTreeis defined by the module that exposes this instance.- Specified by:
definesTreein interfaceTreeContext- Parameters:
tree- The tree to be tested.- Returns:
trueif the specified tree is related to or defined by the security module.
-
definesLocation
Description copied from interface:TreeContextReveals if the specifiedTreeLocationis defined by the module that exposes this instance.- Specified by:
definesLocationin interfaceTreeContext- Parameters:
location- The tree location to be tested.- Returns:
trueif the specified tree location is related to or defined by the security module.
-
definesInternal
public boolean definesInternal(@NotNull @NotNull org.apache.jackrabbit.oak.api.Tree tree) Description copied from interface:TreeContextReveals if the specifiedTreedefines repository internal information, which is not hidden by default.- Specified by:
definesInternalin interfaceTreeContext- Parameters:
tree- The tree to be tested.- Returns:
trueif the specified tree defines repository internal information.- See Also:
-
NodeStateUtils.isHidden(String)NodeStateUtils.isHiddenPath(String)
-