Package com.aquima.interactions.portal
Interface ISessionScope
- All Superinterfaces:
IDisposableScope
,IPortalMessageScope
,IPortalScope
,ISessionLifecycle
,Serializable
- All Known Subinterfaces:
IInternalSessionScope
- All Known Implementing Classes:
ConcurrentSessionScope
,ProcessEnabledSessionScope
,ReadonlySessionScope
,SessionScope
,SessionScopeDelegate
,SessionScopeWrapper
The portalengine holds and constructs session scopes and passes these to services and container methods.
This object's life time is for the entire session. This means from the portalsession is created until it has been
destroyed. One could say the session scope lives at least as long as one is working with a specific application and
profile.
- Since:
- 5.0
- Author:
- f.van.der.meer, Jon van Leuven
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Clears all currently pending portal messages.This functions returns the current active channel if there is a channel active, otherwise when no channel is active null is returned.This function returns the current active user for the current session.Returns the current flow state N.B.Retrieves the currently pending portal messages to process.This function returns the testPath for the current session.void
notifyPortalMessage
(IPortalMessage message) Notifies a portal message after the current event has been processed.Retrieves and clears the currently pending portal messages to process.void
setTestPath
(String testPath) This method will set the testPath for the current session.void
This method will set the user for the current session.Methods inherited from interface com.aquima.interactions.portal.IDisposableScope
destroyDisposableObjects
Methods inherited from interface com.aquima.interactions.portal.IPortalMessageScope
clearPortalMessageAction, getMappedPortalMessages, getPortalMessageAction, setPortalMessageAction
Methods inherited from interface com.aquima.interactions.portal.IPortalScope
clearAttribute, getAttribute, getAttributeNames, getType, hasAttribute, setAttribute
Methods inherited from interface com.aquima.interactions.portal.ISessionLifecycle
activate, passivate
-
Method Details
-
notifyPortalMessage
Notifies a portal message after the current event has been processed.- Parameters:
message
- The portalmessage, not null.
-
removePendingPortalMessages
IPortalMessage[] removePendingPortalMessages()Retrieves and clears the currently pending portal messages to process.- Returns:
- The portal messages, not null.
-
getPendingPortalMessages
IPortalMessage[] getPendingPortalMessages()Retrieves the currently pending portal messages to process.- Returns:
- The portalmessages, not null.
-
clearPendingPortalMessages
void clearPendingPortalMessages()Clears all currently pending portal messages. -
getCurrentFlowState
IFlowState getCurrentFlowState()Returns the current flow state N.B. We recommend one does not use this method in services and containers.- Returns:
- A flowstate
-
getActiveChannel
Channel getActiveChannel()This functions returns the current active channel if there is a channel active, otherwise when no channel is active null is returned.- Returns:
- The current active channel.
-
getActiveUser
IUserData getActiveUser()This function returns the current active user for the current session.- Returns:
- The current active user, never null.
-
setUser
This method will set the user for the current session. The existing user information will be discarded.- Parameters:
user
- The user, may not be null.
-
getTestPath
String getTestPath()This function returns the testPath for the current session.- Returns:
- The testPath for the current session
-
setTestPath
This method will set the testPath for the current session. The existing testPath will be discarded.- Parameters:
testPath
- The testpath, may be null.
-