Class ProcessEnabledSession.PortalEventBusBridge
java.lang.Object
com.aquima.interactions.portal.model.process.ProcessEnabledSession.PortalEventBusBridge
- All Implemented Interfaces:
IPortalSessionListener
- Enclosing class:
ProcessEnabledSession
protected static class ProcessEnabledSession.PortalEventBusBridge
extends Object
implements IPortalSessionListener
Internal class which bridges two event buses. The purpose of this bridge is to prevent exposing to the outside
world the two internal sessions: the main session and the active task session.
- Since:
- 11.0
- Author:
- Petru Galanton
-
Constructor Summary
ConstructorsConstructorDescriptionPortalEventBusBridge
(IPortalSession session, IPortalEventBus destination) Creates a new instance. -
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, IPageSnapshot 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
setPreviousTaskPage
(IPageSnapshot previousTaskPage) void
taskChanged
(IPortalSession session, String status, long taskId, long caseId) Event handler for the task changed event.
-
Constructor Details
-
Method Details
-
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
-
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
-
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
-
getPreviousTaskPage
-
setPreviousTaskPage
-