|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jackrabbit.core.observation.ObservationManagerImpl
public class ObservationManagerImpl
Each Session instance has its own ObservationManager
instance. The class SessionLocalObservationManager implements
this behaviour.
| Constructor Summary | |
|---|---|
ObservationManagerImpl(ObservationDispatcher dispatcher,
SessionImpl session,
ItemManager itemMgr)
Creates an ObservationManager instance. |
|
| Method Summary | |
|---|---|
void |
addEventListener(EventListener listener,
int eventTypes,
String absPath,
boolean isDeep,
String[] uuid,
String[] nodeTypeName,
boolean noLocal)
|
EventFilter |
createEventFilter(int eventTypes,
String absPath,
boolean isDeep,
String[] uuid,
String[] nodeTypeName,
boolean noLocal)
Creates a new event filter with the given restrictions. |
EventStateCollection |
createEventStateCollection()
Creates an EventStateCollection. |
void |
dispose()
Unregisters all EventListeners. |
EventListenerIterator |
getRegisteredEventListeners()
|
void |
removeEventListener(EventListener listener)
|
void |
setUserData(String userData)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ObservationManagerImpl(ObservationDispatcher dispatcher,
SessionImpl session,
ItemManager itemMgr)
throws NullPointerException
ObservationManager instance.
dispatcher - observation dispatchersession - the Session this ObservationManager
belongs to.itemMgr - ItemManager of the passed
Session.
NullPointerException - if session or itemMgr
is null.| Method Detail |
|---|
public void addEventListener(EventListener listener,
int eventTypes,
String absPath,
boolean isDeep,
String[] uuid,
String[] nodeTypeName,
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 void setUserData(String userData)
throws RepositoryException
RepositoryExceptionpublic void dispose()
public EventFilter createEventFilter(int eventTypes,
String absPath,
boolean isDeep,
String[] uuid,
String[] nodeTypeName,
boolean noLocal)
throws RepositoryException
eventTypes - A combination of one or more event type constants encoded as a bitmask.absPath - an absolute path.isDeep - a boolean.uuid - array of UUIDs.nodeTypeName - array of node type names.noLocal - a boolean.
RepositoryException - if an error occurs.public EventStateCollection createEventStateCollection()
EventStateCollection.
Creates an EventStateCollection tied to the session
which is attached to this ObservationManager instance.
createEventStateCollection in interface EventStateCollectionFactoryEventStateCollection
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||