Class Context.Default
- java.lang.Object
-
- org.apache.jackrabbit.oak.spi.security.Context.Default
-
- All Implemented Interfaces:
TreeContext
,Context
- Enclosing interface:
- Context
public static class Context.Default extends java.lang.Object implements Context
Default implementation of theContext
interface that always returnsfalse
.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.jackrabbit.oak.spi.security.Context
Context.Default
-
-
Constructor Summary
Constructors Constructor Description Default()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
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 Detail
-
definesProperty
public boolean definesProperty(@NotNull @NotNull Tree parent, @NotNull @NotNull PropertyState property)
Description copied from interface:TreeContext
Reveals if the specifiedPropertyState
is defined by the module that exposes this instance.- Specified by:
definesProperty
in interfaceTreeContext
- 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
public boolean definesContextRoot(@NotNull @NotNull Tree tree)
Description copied from interface:TreeContext
Reveals if the specifiedTree
is the root of a subtree defined by the module that exposes this instance. Note, that in contrast toTreeContext.definesTree(Tree)
this method will returnfalse
for any tree located in the subtree.- Specified by:
definesContextRoot
in interfaceTreeContext
- 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
public boolean definesTree(@NotNull @NotNull Tree tree)
Description copied from interface:TreeContext
Reveals if the specifiedTree
is defined by the module that exposes this instance.- Specified by:
definesTree
in interfaceTreeContext
- Parameters:
tree
- The tree to be tested.- Returns:
true
if the specified tree is related to or defined by the security module.
-
definesLocation
public boolean definesLocation(@NotNull @NotNull TreeLocation location)
Description copied from interface:TreeContext
Reveals if the specifiedTreeLocation
is defined by the module that exposes this instance.- Specified by:
definesLocation
in interfaceTreeContext
- 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
public boolean definesInternal(@NotNull @NotNull Tree tree)
Description copied from interface:TreeContext
Reveals if the specifiedTree
defines repository internal information, which is not hidden by default.- Specified by:
definesInternal
in interfaceTreeContext
- Parameters:
tree
- The tree to be tested.- Returns:
true
if the specified tree defines repository internal information.- See Also:
NodeStateUtils.isHidden(String)
,NodeStateUtils.isHiddenPath(String)
-
-