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 EventAggregator
Allows providers to supply an optional EventAggregator that is used to adjust (aggregate) the event identifier before event creation (ie after event filtering).@NotNull EventFilter
Factory method for creating aFilter
for the passed before and after states.A set of paths whose subtrees include all events of this filter.boolean
includeCommit
(@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 returnstrue
will be further processed to create individual events.- Parameters:
sessionId
- id of the filtering (this) sessioninfo
- commit info of the commit ornull
if not available- Returns:
true
if observation events should be created from this commit,false
otherwise.- See Also:
-
getFilter
@NotNull @NotNull EventFilter getFilter(@NotNull @NotNull NodeState before, @NotNull @NotNull NodeState after) Factory method for creating aFilter
for the passed before and after states.- Parameters:
before
- before stateafter
- after state- Returns:
- new
Filter
instance
-
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).
-