public interface EventFilter
For example, this allows writing
RegexEventFilter that can be used to
easily match several documents at once. The following will match all Documents which are saved which have a name
new DocumentSaveEvent(new RegexEventFilter(".*Doc.*"))
|Modifier and Type||Method and Description|
Provides access to the filter's criterion.
Compares two event filters to see if they match, meaning that the "contexts" of two events are compatible.
boolean matches(EventFilter eventFilter)
FixedNameEventFiltermatches another filter only if they both have the same name set as the filter, while an
AlwaysMatchingEventFiltermatches any other event filter. A listener that registered to receive notifications like
referenceEventFilter, will be notified of any occuring event for which
eventFilter- the event filter to compare to the filter value
trueif both event filters match. The matching algorithm is left to the filter event implementation. For example the
Regex event filterwill match another filter if that other filter matches the regex.
Copyright © 2004–2021 XWiki. All rights reserved.