|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object lumis.portal.event.PortalEventManager
public class PortalEventManager
Implementation of event management.
Constructor Summary | |
---|---|
PortalEventManager()
|
Method Summary | |
---|---|
String |
addObserver(SessionConfig sessionConfig,
ObserverConfig observerConfig,
ITransaction transaction)
Adds an observer to the persistence. |
void |
deleteObserver(SessionConfig sessionConfig,
String observerId,
ITransaction transaction)
Deletes an observer configuration from persistence. |
ObserverConfig |
getObserver(SessionConfig sessionConfig,
String observerId,
ITransaction transaction)
Returns an observer configuration. |
ObserverConfig |
getObserverByClassName(SessionConfig sessionConfig,
String observerClassName,
ITransaction transaction)
Searches for an observer configuration based on its class name. |
void |
initObservers(SessionConfig sessionConfig,
ITransaction transaction)
Initializes the observers. |
void |
notifyObservers(IPortalEvent event)
Notify event observers of the given event. |
void |
notifyObservers(Object event)
Deprecated. |
void |
registerObservers(SessionConfig sessionConfig,
String observersConfigPath,
ITransaction transaction)
Registers the observers in the specified observer configuration file. |
void |
updateObserver(SessionConfig sessionConfig,
ObserverConfig observerConfig,
ITransaction transaction)
Updates an observer configuration in persistence. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PortalEventManager()
Method Detail |
---|
public void registerObservers(SessionConfig sessionConfig, String observersConfigPath, ITransaction transaction) throws ManagerException, PortalException
IPortalEventManager
registerObservers
in interface IPortalEventManager
sessionConfig
- the user session information.observersConfigPath
- the path to the observer configuration file,
relative to the definition folder.transaction
- the transaction for persistence access.
ManagerException
PortalException
public void initObservers(SessionConfig sessionConfig, ITransaction transaction) throws ManagerException, PortalException
IPortalEventManager
initObservers
in interface IPortalEventManager
sessionConfig
- the user session information.transaction
- the transaction for persistence access.
ManagerException
PortalException
public ObserverConfig getObserver(SessionConfig sessionConfig, String observerId, ITransaction transaction) throws ManagerException, PortalException
IPortalEventManager
getObserver
in interface IPortalEventManager
sessionConfig
- the user session information.observerId
- the observer's identifier.transaction
- the transaction for persistence access.
ManagerException
PortalException
public ObserverConfig getObserverByClassName(SessionConfig sessionConfig, String observerClassName, ITransaction transaction) throws ManagerException, PortalException
IPortalEventManager
getObserverByClassName
in interface IPortalEventManager
sessionConfig
- the user session information.observerClassName
- the observer's class name.transaction
- the transaction for persistence access.
ManagerException
PortalException
public String addObserver(SessionConfig sessionConfig, ObserverConfig observerConfig, ITransaction transaction) throws ManagerException, PortalException
IPortalEventManager
addObserver
in interface IPortalEventManager
sessionConfig
- the user session information.observerConfig
- the observer configuration.transaction
- the transaction for persistence access.
ManagerException
PortalException
public void updateObserver(SessionConfig sessionConfig, ObserverConfig observerConfig, ITransaction transaction) throws ManagerException, PortalException
IPortalEventManager
updateObserver
in interface IPortalEventManager
sessionConfig
- the user session information.observerConfig
- the observer configuration.transaction
- the transaction for persistence access.
ManagerException
PortalException
public void deleteObserver(SessionConfig sessionConfig, String observerId, ITransaction transaction) throws ManagerException, PortalException
IPortalEventManager
deleteObserver
in interface IPortalEventManager
sessionConfig
- the user session information.observerId
- the observer's identifier.transaction
- the transaction for persistence access.
ManagerException
PortalException
@Deprecated public void notifyObservers(Object event)
notifyObservers
in interface IPortalEventManager
public void notifyObservers(IPortalEvent event) throws PortalException
IPortalEventManager
notifyObservers
in interface IPortalEventManager
event
- the event.
PortalException
- if an observer throws an exception.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |