Class RelativePathSelector
java.lang.Object
org.apache.jackrabbit.oak.plugins.observation.filter.RelativePathSelector
- All Implemented Interfaces:
UniversalFilter.Selector
A selector for selecting a node at a relative path from the node selected by
an initial selector.
Note: selecting the parent of the root node will return a non existing
NodeState instance.
-
Constructor Summary
ConstructorsConstructorDescriptionRelativePathSelector(@NotNull String path, @NotNull UniversalFilter.Selector selector) -
Method Summary
Modifier and TypeMethodDescription@NotNull NodeStateselect(@NotNull UniversalFilter filter, @NotNull String name, @NotNull NodeState before, @NotNull NodeState after) Map a node event.@NotNull NodeStateselect(@NotNull UniversalFilter filter, @Nullable PropertyState before, @Nullable PropertyState after) Map a property event.
-
Constructor Details
-
RelativePathSelector
public RelativePathSelector(@NotNull @NotNull String path, @NotNull @NotNull UniversalFilter.Selector selector) - Parameters:
path- path to select fromselector- selector to basepathupon
-
-
Method Details
-
select
@NotNull public @NotNull NodeState select(@NotNull @NotNull UniversalFilter filter, @Nullable @Nullable PropertyState before, @Nullable @Nullable PropertyState after) Description copied from interface:UniversalFilter.SelectorMap a property event.- Specified by:
selectin interfaceUniversalFilter.Selector- Parameters:
filter- filter instance on which respective call back occurred.before- before state ornullforEventFilter.includeAdd(PropertyState)after- after state ornullforEventFilter.includeDelete(PropertyState)- Returns:
- a
NodeStateinstance for basing the filtering criterion (predicate) upon
-
select
@NotNull public @NotNull NodeState select(@NotNull @NotNull UniversalFilter filter, @NotNull @NotNull String name, @NotNull @NotNull NodeState before, @NotNull @NotNull NodeState after) Description copied from interface:UniversalFilter.SelectorMap a node event.- Specified by:
selectin interfaceUniversalFilter.Selector- Parameters:
filter- filter instance on which respective call back occurred.name- name of the child node statebefore- before state ornullforEventFilter.includeAdd(String, NodeState)after- after state ornullforEventFilter.includeDelete(String, NodeState)- Returns:
- a NodeState instance for basing the filtering criterion (predicate) upon
-