Interface UniversalFilter.Selector

  • All Known Implementing Classes:
    RelativePathSelector
    Enclosing class:
    UniversalFilter

    public static interface UniversalFilter.Selector
    A selector instance maps call backs on Filters to NodeState instances, which should be used for determining inclusion or exclusion of the associated event.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      @NotNull org.apache.jackrabbit.oak.spi.state.NodeState select​(@NotNull UniversalFilter filter, @NotNull java.lang.String name, @NotNull org.apache.jackrabbit.oak.spi.state.NodeState before, @NotNull org.apache.jackrabbit.oak.spi.state.NodeState after)
      Map a node event.
      @NotNull org.apache.jackrabbit.oak.spi.state.NodeState select​(@NotNull UniversalFilter filter, @Nullable org.apache.jackrabbit.oak.api.PropertyState before, @Nullable org.apache.jackrabbit.oak.api.PropertyState after)
      Map a property event.
    • Method Detail

      • select

        @NotNull
        @NotNull org.apache.jackrabbit.oak.spi.state.NodeState select​(@NotNull
                                                                      @NotNull UniversalFilter filter,
                                                                      @Nullable
                                                                      @Nullable org.apache.jackrabbit.oak.api.PropertyState before,
                                                                      @Nullable
                                                                      @Nullable org.apache.jackrabbit.oak.api.PropertyState after)
        Map a property event.
        Parameters:
        filter - filter instance on which respective call back occurred.
        before - before state or null for EventFilter.includeAdd(PropertyState)
        after - after state or null for EventFilter.includeDelete(PropertyState)
        Returns:
        a NodeState instance for basing the filtering criterion (predicate) upon
      • select

        @NotNull
        @NotNull org.apache.jackrabbit.oak.spi.state.NodeState select​(@NotNull
                                                                      @NotNull UniversalFilter filter,
                                                                      @NotNull
                                                                      @NotNull java.lang.String name,
                                                                      @NotNull
                                                                      @NotNull org.apache.jackrabbit.oak.spi.state.NodeState before,
                                                                      @NotNull
                                                                      @NotNull org.apache.jackrabbit.oak.spi.state.NodeState after)
        Map a node event.
        Parameters:
        filter - filter instance on which respective call back occurred.
        name - name of the child node state
        before - before state or null for EventFilter.includeAdd(String, NodeState)
        after - after state or null for EventFilter.includeDelete(String, NodeState)
        Returns:
        a NodeState instance for basing the filtering criterion (predicate) upon