|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jackrabbit.spi.commons.EventFilterImpl
public class EventFilterImpl
EventFilterImpl is the simple bean style implementation of an
EventFilter.
| Constructor Summary | |
|---|---|
EventFilterImpl(int eventTypes,
Path absPath,
boolean isDeep,
String[] uuids,
Set nodeTypeNames,
boolean noLocal)
Creates a new EventFilterImpl. |
|
| Method Summary | |
|---|---|
boolean |
accept(Event event,
boolean isLocal)
If an implementation returns true the event
will be included in the event bundle returned by RepositoryService.getEvents(Subscription, long). |
Path |
getAbsPath()
|
int |
getEventTypes()
|
Set |
getNodeTypeNames()
|
boolean |
getNoLocal()
|
String[] |
getUUIDs()
|
boolean |
isDeep()
|
String |
toString()
Returns a string representation of this EventFilter instance. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public EventFilterImpl(int eventTypes,
Path absPath,
boolean isDeep,
String[] uuids,
Set nodeTypeNames,
boolean noLocal)
EventFilterImpl.
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 |
|---|
public boolean accept(Event event,
boolean isLocal)
true the event
will be included in the event bundle returned by RepositoryService.getEvents(Subscription, long). A return
value of false indicates that the client is not interested
in the event.
accept in interface EventFilterevent - the event in question.isLocal - flag indicating whether this is a local event.
true if the event is accepted by the filter;
false otherwise.public int getEventTypes()
public boolean isDeep()
true if this event filter is deep.public Path getAbsPath()
public String[] getUUIDs()
null if
this filter does not care about uuids.public Set getNodeTypeNames()
null if
this filter does not care about node types.public boolean getNoLocal()
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||