Class EventFilterImpl
- java.lang.Object
-
- org.apache.jackrabbit.spi.commons.EventFilterImpl
-
- All Implemented Interfaces:
Serializable,org.apache.jackrabbit.spi.EventFilter
public class EventFilterImpl extends Object implements org.apache.jackrabbit.spi.EventFilter, Serializable
EventFilterImplis the simple bean style implementation of anEventFilter.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description EventFilterImpl(int eventTypes, org.apache.jackrabbit.spi.Path absPath, boolean isDeep, String[] uuids, Set<org.apache.jackrabbit.spi.Name> nodeTypeNames, boolean noLocal)Creates a newEventFilterImpl.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaccept(org.apache.jackrabbit.spi.Event event, boolean isLocal)org.apache.jackrabbit.spi.PathgetAbsPath()intgetEventTypes()Set<org.apache.jackrabbit.spi.Name>getNodeTypeNames()booleangetNoLocal()String[]getUUIDs()booleanisDeep()StringtoString()Returns a string representation of this EventFilter instance.
-
-
-
Constructor Detail
-
EventFilterImpl
public EventFilterImpl(int eventTypes, org.apache.jackrabbit.spi.Path absPath, boolean isDeep, String[] uuids, Set<org.apache.jackrabbit.spi.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 Detail
-
accept
public boolean accept(org.apache.jackrabbit.spi.Event event, boolean isLocal)- Specified by:
acceptin interfaceorg.apache.jackrabbit.spi.EventFilter
-
getEventTypes
public int getEventTypes()
- Returns:
- the event types this event filter accepts.
-
isDeep
public boolean isDeep()
- Returns:
trueif this event filter is deep.
-
getAbsPath
public org.apache.jackrabbit.spi.Path getAbsPath()
- Returns:
- the path to the item where events are filtered.
-
getUUIDs
public String[] getUUIDs()
- Returns:
- the uuids of the nodes of this filter or
nullif this filter does not care about uuids.
-
getNodeTypeNames
public Set<org.apache.jackrabbit.spi.Name> 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.
-
-