public class PortalEventManager extends Object implements IPortalEventManager
Modifier and Type | Field and Description |
---|---|
static String |
INTRANET_NOW_LICENSING_OBSERVER_CLASS_NAME |
Constructor and Description |
---|
PortalEventManager() |
Modifier and Type | Method and Description |
---|---|
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 |
init()
Initializes the portal event manager.
|
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.
|
public static final String INTRANET_NOW_LICENSING_OBSERVER_CLASS_NAME
public void init()
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.LumisXP 12.4.0.200625 - Copyright © 2006–2020 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.