Interface FilterProvider
- All Superinterfaces:
ChangeSetFilter
Instance of this class provide a
EventFilter for observation
events and a filter for commits.
In order to support OAK-4908 a FilterProvider extends ChangeSetFilter
-
Method Summary
Modifier and TypeMethodDescription@Nullable EventAggregatorAllows providers to supply an optional EventAggregator that is used to adjust (aggregate) the event identifier before event creation (ie after event filtering).@NotNull EventFilterFactory method for creating aFilterfor the passed before and after states.A set of paths whose subtrees include all events of this filter.booleanincludeCommit(@NotNull String sessionId, @Nullable CommitInfo info) Filter whole commits.Methods inherited from interface org.apache.jackrabbit.oak.plugins.observation.filter.ChangeSetFilter
excludes
-
Method Details
-
includeCommit
Filter whole commits. Only commits for which this method returnstruewill be further processed to create individual events.- Parameters:
sessionId- id of the filtering (this) sessioninfo- commit info of the commit ornullif not available- Returns:
trueif observation events should be created from this commit,falseotherwise.- See Also:
-
getFilter
@NotNull @NotNull EventFilter getFilter(@NotNull @NotNull NodeState before, @NotNull @NotNull NodeState after) Factory method for creating aFilterfor the passed before and after states.- Parameters:
before- before stateafter- after state- Returns:
- new
Filterinstance
-
getSubTrees
A set of paths whose subtrees include all events of this filter.- Returns:
- list of paths
- See Also:
-
getConfigMBean
FilterConfigMBean getConfigMBean() -
getEventAggregator
Allows providers to supply an optional EventAggregator that is used to adjust (aggregate) the event identifier before event creation (ie after event filtering).
-