Class Filters
- java.lang.Object
-
- org.apache.jackrabbit.oak.plugins.observation.filter.Filters
-
public final class Filters extends Object
This utility class provides commonEventFilterinstances
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static @NotNull EventFilterall(@NotNull List<EventFilter> filters)A filter that matches if and only if all of the filters passed to this method matches.static @NotNull EventFilterall(@NotNull EventFilter... filters)A filter that matches if and only if all of the filters passed to this method matches.static @NotNull EventFilterany(@NotNull List<EventFilter> filters)A filter that matches if and only if any of the filters passed to this method matches.static @NotNull EventFilterany(@NotNull EventFilter... filters)A filter that matches if and only if any of the filters passed to this method matches.static @NotNull EventFilterexcludeAll()static @NotNull EventFilterincludeAll()static @NotNull EventFilternot(@NotNull EventFilter filter)A filter that matches if and only if any the filter passed to this method does not match.
-
-
-
Method Detail
-
not
@NotNull public static @NotNull EventFilter not(@NotNull @NotNull EventFilter filter)
A filter that matches if and only if any the filter passed to this method does not match.- Parameters:
filter- filter which must not match- Returns:
trueiffilterdoes not match.
-
any
@NotNull public static @NotNull EventFilter any(@NotNull @NotNull EventFilter... filters)
A filter that matches if and only if any of the filters passed to this method matches.- Parameters:
filters- filters of which any must match- Returns:
trueif any offiltersmatch.
-
all
@NotNull public static @NotNull EventFilter all(@NotNull @NotNull EventFilter... filters)
A filter that matches if and only if all of the filters passed to this method matches.- Parameters:
filters- filters of which all must match- Returns:
trueif all offiltersmatch.
-
includeAll
@NotNull public static @NotNull EventFilter includeAll()
- Returns:
- Filter that includes everything
-
excludeAll
@NotNull public static @NotNull EventFilter excludeAll()
- Returns:
- Filter that excludes everything
-
any
@NotNull public static @NotNull EventFilter any(@NotNull @NotNull List<EventFilter> filters)
A filter that matches if and only if any of the filters passed to this method matches.- Parameters:
filters- filters of which any must match- Returns:
trueif any offiltersmatch.
-
all
@NotNull public static @NotNull EventFilter all(@NotNull @NotNull List<EventFilter> filters)
A filter that matches if and only if all of the filters passed to this method matches.- Parameters:
filters- filters of which all must match- Returns:
trueif all offiltersmatch.
-
-