public static class Context.Default extends Object implements Context
Context interface that always returns
false.Context.Default| Constructor and Description |
|---|
Default() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
definesContextRoot(@NotNull org.apache.jackrabbit.oak.api.Tree tree)
Reveals if the specified
Tree is the root of a subtree defined by
the module that exposes this TreeContext instance. |
boolean |
definesInternal(@NotNull org.apache.jackrabbit.oak.api.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 TreeContext instance. |
boolean |
definesProperty(@NotNull org.apache.jackrabbit.oak.api.Tree parent,
@NotNull org.apache.jackrabbit.oak.api.PropertyState property)
Reveals if the specified
PropertyState is defined by the
module that exposes this TreeContext instance. |
boolean |
definesTree(@NotNull org.apache.jackrabbit.oak.api.Tree tree)
Reveals if the specified
Tree is defined by the
module that exposes this TreeContext instance. |
public boolean definesProperty(@NotNull
@NotNull org.apache.jackrabbit.oak.api.Tree parent,
@NotNull
@NotNull org.apache.jackrabbit.oak.api.PropertyState property)
TreeContextPropertyState is defined by the
module that exposes this TreeContext instance.definesProperty in interface TreeContextparent - 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.public boolean definesContextRoot(@NotNull
@NotNull org.apache.jackrabbit.oak.api.Tree tree)
TreeContextTree is the root of a subtree defined by
the module that exposes this TreeContext instance. Note,
that in contrast to TreeContext.definesTree(Tree)
this method will return false for any tree located in the
subtree.definesContextRoot in interface TreeContexttree - 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.public boolean definesTree(@NotNull
@NotNull org.apache.jackrabbit.oak.api.Tree tree)
TreeContextTree is defined by the
module that exposes this TreeContext instance.definesTree in interface TreeContexttree - The tree to be tested.true if the specified tree is related to or defined by the
security module.public boolean definesLocation(@NotNull
@NotNull TreeLocation location)
TreeContextTreeLocation is defined by the
module that exposes this TreeContext instance.definesLocation in interface TreeContextlocation - The tree location to be tested.true if the specified tree location is related to or
defined by the security module.public boolean definesInternal(@NotNull
@NotNull org.apache.jackrabbit.oak.api.Tree tree)
TreeContextTree defines repository internal information,
which is not hidden by default.definesInternal in interface TreeContexttree - The tree to be tested.true if the specified tree defines repository internal information.NodeStateUtils.isHidden(String),
NodeStateUtils.isHiddenPath(String)Copyright © 2012–2018 The Apache Software Foundation. All rights reserved.