Class PortalEventBus
java.lang.Object
com.aquima.interactions.portal.model.session.PortalEventBus
- All Implemented Interfaces:
IPortalEventBus
,IPortalSessionListener
The default portal event bus implementation.
- Since:
- 11.0
- Author:
- Petru Galanton
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
activated
(IPortalSession session) Event handler for when the session is activated.void
beforeClose
(IPortalSession session) Event handler before closing the session.void
beforeFlowStarted
(IPortalSession session, String flowName) Event handler for the before flow started event.void
closed
(IPortalSession session) Event handler for the session closed.void
created
(IPortalSession session) Event handler for the session created.void
flowEnded
(IPortalSession session, ExitState exitState, ExitEvent exitEvent) Event handler for the flow ended event.void
flowStarted
(IPortalSession session, String flowName) Event handler for the flow started event.void
pageChanged
(IPortalSession session, IPage previous, IPage current) Event handler for the page changed event.void
passivated
(IPortalSession session) Event handler for when the session is passivated.void
portalChange
(IPortalChange portalChange) Event handler for the portal change event.void
projectChanged
(IPortalSession session, IProjectChange projectChange) Event handler for the project changed event.void
register
(IPortalSessionListener listener) Registers a session listener with this event bus.void
taskChanged
(IPortalSession session, String status, long taskId, long caseId) Event handler for the task changed event.void
unregister
(IPortalSessionListener listener) Removes a session listener from this event bus.
-
Constructor Details
-
PortalEventBus
public PortalEventBus()
-
-
Method Details
-
beforeFlowStarted
Description copied from interface:IPortalSessionListener
Event handler for the before flow started event.- Specified by:
beforeFlowStarted
in interfaceIPortalSessionListener
- Parameters:
session
- the session in which the event occurredflowName
- The name of the flow.
-
flowStarted
Description copied from interface:IPortalSessionListener
Event handler for the flow started event.- Specified by:
flowStarted
in interfaceIPortalSessionListener
- Parameters:
session
- the session in which the event occurredflowName
- The name of the flow.
-
pageChanged
Description copied from interface:IPortalSessionListener
Event handler for the page changed event.- Specified by:
pageChanged
in interfaceIPortalSessionListener
- Parameters:
session
- the session in which the event occurredprevious
- The before page, may be null.current
- The new page, may be null.
-
flowEnded
Description copied from interface:IPortalSessionListener
Event handler for the flow ended event.- Specified by:
flowEnded
in interfaceIPortalSessionListener
- Parameters:
session
- the session in which the event occurredexitState
- State of the flow ended event.exitEvent
- The exit event
-
projectChanged
Description copied from interface:IPortalSessionListener
Event handler for the project changed event. This event is fired when a new project was started (e.g. via the AQ_StartProject service call).- Specified by:
projectChanged
in interfaceIPortalSessionListener
- Parameters:
session
- the session in which the event occurredprojectChange
- details about the newly started project.
-
portalChange
Description copied from interface:IPortalSessionListener
Event handler for the portal change event. This event is fired when a new portal change was created.- Specified by:
portalChange
in interfaceIPortalSessionListener
- Parameters:
portalChange
- details about the requested portal change
-
taskChanged
Description copied from interface:IPortalSessionListener
Event handler for the task changed event. This event is fired when the status of a task changes.- Specified by:
taskChanged
in interfaceIPortalSessionListener
- Parameters:
session
- the session in which the event occurredstatus
- the new status of the tasktaskId
- the id of the task in the DAOcaseId
- the id of the case in the DAO
-
beforeClose
Description copied from interface:IPortalSessionListener
Event handler before closing the session.- Specified by:
beforeClose
in interfaceIPortalSessionListener
- Parameters:
session
- the session in which the event occurred
-
closed
Description copied from interface:IPortalSessionListener
Event handler for the session closed.- Specified by:
closed
in interfaceIPortalSessionListener
- Parameters:
session
- the session in which the event occurred
-
created
Description copied from interface:IPortalSessionListener
Event handler for the session created.- Specified by:
created
in interfaceIPortalSessionListener
- Parameters:
session
- the session for which the event occurred
-
activated
Description copied from interface:IPortalSessionListener
Event handler for when the session is activated.- Specified by:
activated
in interfaceIPortalSessionListener
- Parameters:
session
- the session for which the event occurred
-
passivated
Description copied from interface:IPortalSessionListener
Event handler for when the session is passivated.- Specified by:
passivated
in interfaceIPortalSessionListener
- Parameters:
session
- the session for which the event occurred
-
register
Description copied from interface:IPortalEventBus
Registers a session listener with this event bus.- Specified by:
register
in interfaceIPortalEventBus
- Parameters:
listener
- The listener implementation, not null.
-
unregister
Description copied from interface:IPortalEventBus
Removes a session listener from this event bus.- Specified by:
unregister
in interfaceIPortalEventBus
- Parameters:
listener
- The listener implementation to remove, not null.
-