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 NodeState
select
(@NotNull UniversalFilter filter, @NotNull String name, @NotNull NodeState before, @NotNull NodeState after) Map a node event.@NotNull NodeState
select
(@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 basepath
upon
-
-
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.Selector
Map a property event.- Specified by:
select
in interfaceUniversalFilter.Selector
- Parameters:
filter
- filter instance on which respective call back occurred.before
- before state ornull
forEventFilter.includeAdd(PropertyState)
after
- after state ornull
forEventFilter.includeDelete(PropertyState)
- Returns:
- a
NodeState
instance 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.Selector
Map a node event.- Specified by:
select
in interfaceUniversalFilter.Selector
- Parameters:
filter
- filter instance on which respective call back occurred.name
- name of the child node statebefore
- before state ornull
forEventFilter.includeAdd(String, NodeState)
after
- after state ornull
forEventFilter.includeDelete(String, NodeState)
- Returns:
- a NodeState instance for basing the filtering criterion (predicate) upon
-