|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jackrabbit.jcr2spi.observation.ObservationManagerImpl
public class ObservationManagerImpl
ObservationManagerImpl...
| Constructor Summary | |
|---|---|
ObservationManagerImpl(WorkspaceManager wspManager,
NamePathResolver resolver,
NodeTypeRegistry ntRegistry)
Creates a new observation manager for session. |
|
| Method Summary | |
|---|---|
void |
addEventListener(EventListener listener,
int eventTypes,
java.lang.String absPath,
boolean isDeep,
java.lang.String[] uuids,
java.lang.String[] nodeTypeNames,
boolean noLocal)
|
java.util.Collection<EventFilter> |
getEventFilters()
Returns a collection of event filters which is in use by this event listener. |
EventJournal |
getEventJournal()
|
EventJournal |
getEventJournal(int eventTypes,
java.lang.String absPath,
boolean isDeep,
java.lang.String[] uuid,
java.lang.String[] nodeTypeName)
|
EventListenerIterator |
getRegisteredEventListeners()
|
void |
onEvent(EventBundle eventBundle)
Gets called when an event occurs. |
void |
removeEventListener(EventListener listener)
|
void |
setUserData(java.lang.String userData)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ObservationManagerImpl(WorkspaceManager wspManager,
NamePathResolver resolver,
NodeTypeRegistry ntRegistry)
session.
wspManager - the WorkspaceManager.resolver - the name path resolver for this session.ntRegistry - The NodeTypeRegistry of the session.| Method Detail |
|---|
public void addEventListener(EventListener listener,
int eventTypes,
java.lang.String absPath,
boolean isDeep,
java.lang.String[] uuids,
java.lang.String[] nodeTypeNames,
boolean noLocal)
throws RepositoryException
addEventListener in interface ObservationManagerRepositoryException
public void removeEventListener(EventListener listener)
throws RepositoryException
removeEventListener in interface ObservationManagerRepositoryException
public EventListenerIterator getRegisteredEventListeners()
throws RepositoryException
getRegisteredEventListeners in interface ObservationManagerRepositoryException
public EventJournal getEventJournal()
throws RepositoryException
getEventJournal in interface ObservationManagerRepositoryExceptionObservationManager.getEventJournal()
public EventJournal getEventJournal(int eventTypes,
java.lang.String absPath,
boolean isDeep,
java.lang.String[] uuid,
java.lang.String[] nodeTypeName)
throws RepositoryException
getEventJournal in interface ObservationManagerRepositoryExceptionObservationManager.getEventJournal(int, String, boolean, String[], String[])
public void setUserData(java.lang.String userData)
throws RepositoryException
setUserData in interface ObservationManagerRepositoryExceptionObservationManager.setUserData(String)public java.util.Collection<EventFilter> getEventFilters()
InternalEventListenerInternalEventListener.onEvent(org.apache.jackrabbit.spi.EventBundle) will be filtered
using the collection returned by this method. An event is included
in an event bundles if it is accepted by at least one of the filters
returned by this method.
getEventFilters in interface InternalEventListenerEventFilters currently
in use by this event listener.public void onEvent(EventBundle eventBundle)
InternalEventListener
onEvent in interface InternalEventListenereventBundle - the event set received.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||