Class EventFilterImpl
java.lang.Object
org.apache.jackrabbit.spi.commons.EventFilterImpl
- All Implemented Interfaces:
Serializable,EventFilter
EventFilterImpl is the simple bean style implementation of an
EventFilter.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionEventFilterImpl(int eventTypes, Path absPath, boolean isDeep, String[] uuids, Set<Name> nodeTypeNames, boolean noLocal) Creates a newEventFilterImpl. -
Method Summary
Modifier and TypeMethodDescriptionbooleanIf an implementation returnstruetheeventwill be included in the event bundle returned byRepositoryService.getEvents(Subscription, long).intbooleanString[]getUUIDs()booleanisDeep()toString()Returns a string representation of this EventFilter instance.
-
Constructor Details
-
EventFilterImpl
public EventFilterImpl(int eventTypes, Path absPath, boolean isDeep, String[] uuids, Set<Name> nodeTypeNames, boolean noLocal) Creates a newEventFilterImpl.- Parameters:
eventTypes- the event types this filter is interested in.absPath- filter events that are below this path.isDeep- whether this filter is applied deep.uuids- the jcr:uuid of the nodes this filter allows.nodeTypeNames- the Names of the already resolved node types this filter allows.noLocal- whether this filter accepts local events or not.
-
-
Method Details
-
accept
If an implementation returnstruetheeventwill be included in the event bundle returned byRepositoryService.getEvents(Subscription, long). A return value offalseindicates that the client is not interested in theevent.- Specified by:
acceptin interfaceEventFilter- Parameters:
event- the event in question.isLocal- flag indicating whether this is a local event.- Returns:
trueif the event is accepted by the filter;falseotherwise.
-
getEventTypes
public int getEventTypes()- Returns:
- the event types this event filter accepts.
-
isDeep
public boolean isDeep()- Returns:
trueif this event filter is deep.
-
getAbsPath
- Returns:
- the path to the item where events are filtered.
-
getUUIDs
- Returns:
- the uuids of the nodes of this filter or
nullif this filter does not care about uuids.
-
getNodeTypeNames
- Returns:
- an unmodifiable set of node type names or
nullif this filter does not care about node types.
-
getNoLocal
public boolean getNoLocal()- Returns:
- if this filter accepts local events.
-
toString
Returns a string representation of this EventFilter instance.
-