org.priha.core.observation
Class ObservationManagerImpl

java.lang.Object
  extended by org.priha.core.observation.ObservationManagerImpl

public class ObservationManagerImpl
extends java.lang.Object

Implements an ObservationManager. Again, the actual implementation is a per-Session class instantiated at request.


Nested Class Summary
 class ObservationManagerImpl.Impl
          Session-local ObservationManager.
 
Constructor Summary
ObservationManagerImpl()
           
 
Method Summary
 void addEventListener(SessionImpl session, java.util.EventListener listener, int eventTypes, Path absPath, boolean isDeep, java.lang.String[] uuid, java.lang.String[] nodeTypeName, boolean noLocal)
          Adds an event listener for a particular Session.
 void fireEvent(SessionImpl srcSession, ChangeStore changes)
           
static ObservationManagerImpl.Impl getInstance(WorkspaceImpl workspaceImpl)
          Get an instance for a Workspace.
 EventListenerIterator getRegisteredEventListeners(SessionImpl session)
          Lists EventListeners for a given Session.
 void removeEventListener(java.util.EventListener listener)
          Removes an Event listener (for any session)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ObservationManagerImpl

public ObservationManagerImpl()
Method Detail

addEventListener

public void addEventListener(SessionImpl session,
                             java.util.EventListener listener,
                             int eventTypes,
                             Path absPath,
                             boolean isDeep,
                             java.lang.String[] uuid,
                             java.lang.String[] nodeTypeName,
                             boolean noLocal)
                      throws RepositoryException
Adds an event listener for a particular Session.

Parameters:
session -
listener -
eventTypes -
absPath -
isDeep -
uuid -
nodeTypeName -
noLocal -
Throws:
RepositoryException

getRegisteredEventListeners

public EventListenerIterator getRegisteredEventListeners(SessionImpl session)
                                                  throws RepositoryException
Lists EventListeners for a given Session.

Parameters:
session -
Returns:
Throws:
RepositoryException

removeEventListener

public void removeEventListener(java.util.EventListener listener)
                         throws RepositoryException
Removes an Event listener (for any session)

Parameters:
listener -
Throws:
RepositoryException

fireEvent

public void fireEvent(SessionImpl srcSession,
                      ChangeStore changes)

getInstance

public static ObservationManagerImpl.Impl getInstance(WorkspaceImpl workspaceImpl)
Get an instance for a Workspace.