Package com.aquima.web
Class AquimaSession
java.lang.Object
com.aquima.web.AquimaSession
- All Implemented Interfaces:
com.aquima.interactions.foundation.concurrent.Interruptible
,com.blueriq.component.api.IAquimaSession
,com.blueriq.component.api.session.IAquimaSessionLifecycle
,Serializable
Wrapper for an IPortalSession for in web applications.
- Since:
- 8.0
- Author:
- Danny Roest
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionAquimaSession
(com.aquima.interactions.portal.IPortalSession portalSession, com.aquima.interactions.portal.IApplication application, com.blueriq.component.api.IAquimaEngineConfiguration config, String name) Creates an Aquima session with an automatically generated session id.AquimaSession
(String sessionId, com.aquima.interactions.portal.IPortalSession portalSession, com.aquima.interactions.portal.IApplication application, com.blueriq.component.api.IAquimaEngineConfiguration config, String name) Creates an Aquima session with an externally provided session id. -
Method Summary
Modifier and TypeMethodDescriptionvoid
activate
(com.blueriq.component.api.session.IAquimaSessionActivationContext sessionActivationContext) boolean
close()
com.aquima.interactions.portal.IActionResult
executeAction
(String handlerName, Map<String, ?> parameters) com.aquima.interactions.portal.IActionResult
executeInlineAction
(com.aquima.interactions.portal.IActionHandler actionHandler, Map<String, ?> parameters) com.blueriq.component.api.ui.IAquimaUi
com.aquima.interactions.metamodel.Channel
com.aquima.interactions.foundation.text.ILanguage
com.aquima.interactions.composer.IPage
com.aquima.interactions.project.IUserData
com.aquima.interactions.portal.ISessionMonitor
getName()
com.aquima.interactions.portal.IPortalSession
com.blueriq.component.api.IProjectDetails
getTheme()
com.aquima.interactions.project.IValueFormatDefinition
getValueFormatDefinition
(com.aquima.interactions.foundation.DataType type) void
handleEvent
(com.aquima.interactions.portal.PortalEvent portalEvent) void
boolean
void
void
void
final String
final String
void
setAquimaUi
(String name) void
setLanguage
(String languageCode) setSessionScopeAttribute
(String key, Serializable value) void
void
void
startFlow
(String name, boolean allowUnexposedFlows, Map<String, Serializable> parameters) void
stopFlow
(boolean commitPendingChanges)
-
Constructor Details
-
AquimaSession
public AquimaSession(com.aquima.interactions.portal.IPortalSession portalSession, com.aquima.interactions.portal.IApplication application, com.blueriq.component.api.IAquimaEngineConfiguration config, String name) Creates an Aquima session with an automatically generated session id.- Parameters:
portalSession
- the aquima portal sessionapplication
- the application that is started in this sessionconfig
- the configurationname
- the name of the session
-
AquimaSession
public AquimaSession(String sessionId, com.aquima.interactions.portal.IPortalSession portalSession, com.aquima.interactions.portal.IApplication application, com.blueriq.component.api.IAquimaEngineConfiguration config, String name) Creates an Aquima session with an externally provided session id.- Parameters:
sessionId
- the session id, must not be null or emptyportalSession
- the aquima portal sessionapplication
- the application that is started in this sessionconfig
- the configurationname
- the name of the session
-
-
Method Details
-
startFlow
- Specified by:
startFlow
in interfacecom.blueriq.component.api.IAquimaSession
-
startFlow
public void startFlow(String name, boolean allowUnexposedFlows, Map<String, Serializable> parameters) - Specified by:
startFlow
in interfacecom.blueriq.component.api.IAquimaSession
-
stopFlow
public void stopFlow(boolean commitPendingChanges) - Specified by:
stopFlow
in interfacecom.blueriq.component.api.IAquimaSession
-
handleEvent
public void handleEvent(com.aquima.interactions.portal.PortalEvent portalEvent) - Specified by:
handleEvent
in interfacecom.blueriq.component.api.IAquimaSession
-
executeInlineAction
public com.aquima.interactions.portal.IActionResult executeInlineAction(com.aquima.interactions.portal.IActionHandler actionHandler, Map<String, ?> parameters) - Specified by:
executeInlineAction
in interfacecom.blueriq.component.api.IAquimaSession
-
executeAction
public com.aquima.interactions.portal.IActionResult executeAction(String handlerName, Map<String, ?> parameters) - Specified by:
executeAction
in interfacecom.blueriq.component.api.IAquimaSession
-
setTheme
- Specified by:
setTheme
in interfacecom.blueriq.component.api.IAquimaSession
-
setLanguage
- Specified by:
setLanguage
in interfacecom.blueriq.component.api.IAquimaSession
-
close
public boolean close()- Specified by:
close
in interfacecom.blueriq.component.api.IAquimaSession
-
getCurrentPage
public com.aquima.interactions.composer.IPage getCurrentPage()- Specified by:
getCurrentPage
in interfacecom.blueriq.component.api.IAquimaSession
-
getCurrentLanguage
public com.aquima.interactions.foundation.text.ILanguage getCurrentLanguage()- Specified by:
getCurrentLanguage
in interfacecom.blueriq.component.api.IAquimaSession
-
getAquimaUi
public com.blueriq.component.api.ui.IAquimaUi getAquimaUi()- Specified by:
getAquimaUi
in interfacecom.blueriq.component.api.IAquimaSession
-
setAquimaUi
- Specified by:
setAquimaUi
in interfacecom.blueriq.component.api.IAquimaSession
-
getSessionId
- Specified by:
getSessionId
in interfacecom.blueriq.component.api.IAquimaSession
-
getCsrfToken
- Specified by:
getCsrfToken
in interfacecom.blueriq.component.api.IAquimaSession
-
renewCsrfToken
- Specified by:
renewCsrfToken
in interfacecom.blueriq.component.api.IAquimaSession
-
getRequestWard
- Specified by:
getRequestWard
in interfacecom.blueriq.component.api.IAquimaSession
-
renewRequestWard
- Specified by:
renewRequestWard
in interfacecom.blueriq.component.api.IAquimaSession
-
getPortalSession
public com.aquima.interactions.portal.IPortalSession getPortalSession()- Specified by:
getPortalSession
in interfacecom.blueriq.component.api.IAquimaSession
-
getTheme
- Specified by:
getTheme
in interfacecom.blueriq.component.api.IAquimaSession
-
getValueFormatDefinition
public com.aquima.interactions.project.IValueFormatDefinition getValueFormatDefinition(com.aquima.interactions.foundation.DataType type) - Specified by:
getValueFormatDefinition
in interfacecom.blueriq.component.api.IAquimaSession
-
getProjectDetails
public com.blueriq.component.api.IProjectDetails getProjectDetails()- Specified by:
getProjectDetails
in interfacecom.blueriq.component.api.IAquimaSession
-
getStartTime
- Specified by:
getStartTime
in interfacecom.blueriq.component.api.IAquimaSession
-
getMonitor
public com.aquima.interactions.portal.ISessionMonitor getMonitor()- Specified by:
getMonitor
in interfacecom.blueriq.component.api.IAquimaSession
-
getCurrentUser
public com.aquima.interactions.project.IUserData getCurrentUser()- Specified by:
getCurrentUser
in interfacecom.blueriq.component.api.IAquimaSession
-
getTestPath
- Specified by:
getTestPath
in interfacecom.blueriq.component.api.IAquimaSession
-
getCurrentChannel
public com.aquima.interactions.metamodel.Channel getCurrentChannel()- Specified by:
getCurrentChannel
in interfacecom.blueriq.component.api.IAquimaSession
-
recompose
public void recompose()- Specified by:
recompose
in interfacecom.blueriq.component.api.IAquimaSession
-
getSessionScopeAttribute
- Specified by:
getSessionScopeAttribute
in interfacecom.blueriq.component.api.IAquimaSession
-
setSessionScopeAttribute
- Specified by:
setSessionScopeAttribute
in interfacecom.blueriq.component.api.IAquimaSession
-
getName
- Specified by:
getName
in interfacecom.blueriq.component.api.IAquimaSession
-
getAccessTime
- Specified by:
getAccessTime
in interfacecom.blueriq.component.api.IAquimaSession
-
notifyAccess
public void notifyAccess()- Specified by:
notifyAccess
in interfacecom.blueriq.component.api.IAquimaSession
-
activate
public void activate(com.blueriq.component.api.session.IAquimaSessionActivationContext sessionActivationContext) - Specified by:
activate
in interfacecom.blueriq.component.api.session.IAquimaSessionLifecycle
-
passivate
public void passivate()- Specified by:
passivate
in interfacecom.blueriq.component.api.session.IAquimaSessionLifecycle
-
interrupt
public void interrupt()- Specified by:
interrupt
in interfacecom.aquima.interactions.foundation.concurrent.Interruptible
-
isInterrupted
public boolean isInterrupted()- Specified by:
isInterrupted
in interfacecom.aquima.interactions.foundation.concurrent.Interruptible
-