Interface IAquimaEngineFacade
public interface IAquimaEngineFacade
Interface for portal engines used in web based applications.
- Since:
- 8.0
- Author:
- Danny Roest
-
Method Summary
Modifier and TypeMethodDescriptionvoidactivateSession(IAquimaSession session) Activates the given session.createChildSession(IAquimaSessionsMap manager, String parentSessionId, com.aquima.interactions.foundation.ApplicationID applicationId, com.aquima.interactions.project.ModuleID moduleId, com.aquima.interactions.metamodel.Channel channel, com.aquima.interactions.project.IUserData userData, String name) Creates a child portal session for the specified application and module and saves the session.createChildSession(IAquimaSessionsMap sessionManager, String parentSessionId, com.aquima.interactions.foundation.ApplicationID applicationId, String channel, com.aquima.interactions.project.IUserData user, String name) Creates a portal session for the specified application.createNonInteractiveSession(com.aquima.interactions.foundation.ApplicationID applicationId, com.aquima.interactions.project.IUserData userData) Creates a portal session for the specified application and saves the session.createSession(IAquimaSessionsMap manager, com.aquima.interactions.foundation.ApplicationID applicationId, String channel, com.aquima.interactions.project.IUserData userData, String name) Creates a web portal session for the specified application and saves the session.getAquimaUi(String name) Returns the render engine by name.Returns the list of the name of configured Aquima user interfaces.com.aquima.interactions.foundation.VersiongetDefaultVersion(String projectName) Returns the default version of the project.com.aquima.interactions.portal.IPortalEnginegetProjectDetails(com.aquima.interactions.foundation.ApplicationID applicationId) This method returns the details about the application started running this session.Returns the list with project names.List<com.aquima.interactions.foundation.Version> getVersions(String projectName) Returns the versions of the project.voidpassivateSession(IAquimaSession session) Passivates the given session.voidreloadProject(String projectName) Reloads the project definition.voidReloads the all the project definitions.voidreloadProjects(String branchName, String... projectNames) Reloads the projects definition.restoreSession(IAquimaSessionsMap sessionManager, com.aquima.interactions.foundation.ApplicationID applicationId, com.aquima.interactions.portal.model.ISessionState sessionState, String sessionId, com.aquima.interactions.portal.IPortalMessageBus messageBus, com.aquima.interactions.portal.IPortalEventBus eventBus) This method may be used to restore a session from binary data containing a saved session state.restoreSession(IAquimaSessionsMap sessionManager, com.aquima.interactions.foundation.ApplicationID applicationId, String sessionXml, String sessionId, com.aquima.interactions.portal.IPortalMessageBus messageBus, com.aquima.interactions.portal.IPortalEventBus eventBus) This method may be used to restore a session from an XML containing a saved session state.
-
Method Details
-
createSession
IAquimaSession createSession(IAquimaSessionsMap manager, com.aquima.interactions.foundation.ApplicationID applicationId, String channel, com.aquima.interactions.project.IUserData userData, String name) Creates a web portal session for the specified application and saves the session.- Parameters:
manager- The session manager, may not be null.applicationId- the id of the applicationchannel- optional name of the channel to startuserData- optional userDataname- The name of the session- Returns:
- an Aquima session
- Throws:
com.aquima.interactions.foundation.exception.AppException- when the session could not be created.
-
createNonInteractiveSession
IAquimaSession createNonInteractiveSession(com.aquima.interactions.foundation.ApplicationID applicationId, com.aquima.interactions.project.IUserData userData) Creates a portal session for the specified application and saves the session. This session is assumed to be noninteractive, i.e. the flow it executes will reach an end state without user interaction (pages). Such a session can be used for automatic task execution. The session will not be managed in a session manager.- Parameters:
applicationId- the id of the applicationuserData- optional userData- Returns:
- an Aquima session
- Throws:
com.aquima.interactions.foundation.exception.AppException- when the session could not be created.
-
createChildSession
IAquimaSession createChildSession(IAquimaSessionsMap manager, String parentSessionId, com.aquima.interactions.foundation.ApplicationID applicationId, com.aquima.interactions.project.ModuleID moduleId, com.aquima.interactions.metamodel.Channel channel, com.aquima.interactions.project.IUserData userData, String name) Creates a child portal session for the specified application and module and saves the session. The child session shares the message bus and event bus of the parent session.- Parameters:
manager- The session manager, may not be null.parentSessionId- the ID of the parent portal session (not null)applicationId- the id of the application, may not be nullmoduleId- the id of the module, may not be nullchannel- optional name of the channel to startuserData- optional userdataname- The name of the session- Returns:
- the id of the child session
- Throws:
com.aquima.interactions.foundation.exception.AppException- when the session could not be created.
-
createChildSession
IAquimaSession createChildSession(IAquimaSessionsMap sessionManager, String parentSessionId, com.aquima.interactions.foundation.ApplicationID applicationId, String channel, com.aquima.interactions.project.IUserData user, String name) Creates a portal session for the specified application.The created session is registered as a child of the portal session specified by parentSessionId. Sessions created with this method can be used to start a flow from an external application in a flow widget. The created child session shares the message bus and event bus of the parent session.
- Parameters:
sessionManager- the session manager (not null)parentSessionId- the ID of the parent portal session (not null)applicationId- the ID of the application (not null)channel- the optional channel (may be null)user- the optional user (may be null)name- the session name (may be null)- Returns:
- a newly created child portal session
- Throws:
com.aquima.interactions.foundation.exception.AppException- when the session could not be created
-
getPortalEngine
com.aquima.interactions.portal.IPortalEngine getPortalEngine() -
getAvailableAquimaUIs
-
getAquimaUi
-
getProjectNames
-
reloadProject
Reloads the project definition.- Parameters:
projectName- the name of the project
-
reloadProjects
Reloads the projects definition.- Parameters:
branchName- The branch name for the projects for which the definition should be reloaded.projectNames- The projects (with this version) for which the definition should be reloaded. When null, reload the definition for all projects with this version
-
reloadProjects
void reloadProjects()Reloads the all the project definitions. -
getDefaultVersion
Returns the default version of the project.- Parameters:
projectName- the name of the project- Returns:
- the default version of the project
- Throws:
com.aquima.interactions.portal.exception.PortalException- when default version of the application cannot be determined.
-
getVersions
Returns the versions of the project.- Parameters:
projectName- the name of the project- Returns:
- the versions of the project
- Throws:
com.aquima.interactions.portal.exception.PortalException- then the versions cannot be determined
-
restoreSession
IAquimaSession restoreSession(IAquimaSessionsMap sessionManager, com.aquima.interactions.foundation.ApplicationID applicationId, String sessionXml, String sessionId, com.aquima.interactions.portal.IPortalMessageBus messageBus, com.aquima.interactions.portal.IPortalEventBus eventBus) This method may be used to restore a session from an XML containing a saved session state.If the sessionId is specified the current session is updated via
IAquimaSessionsMap.updateSession(IAquimaSession)else the session is added viaIAquimaSessionsMap.addSession(IAquimaSession)- Parameters:
sessionManager- the current session managerapplicationId- the id of the application to restoresessionXml- XML containing a saved session state.sessionId- the optional sessionId to usemessageBus- the message bus that should be used by this sessioneventBus- the event bus that should be used by this session- Returns:
- An initialized session ready for use.
- Throws:
com.aquima.interactions.foundation.exception.AppException- This exception is thrown when the session could not be restored.- See Also:
-
restoreSession
IAquimaSession restoreSession(IAquimaSessionsMap sessionManager, com.aquima.interactions.foundation.ApplicationID applicationId, com.aquima.interactions.portal.model.ISessionState sessionState, String sessionId, com.aquima.interactions.portal.IPortalMessageBus messageBus, com.aquima.interactions.portal.IPortalEventBus eventBus) This method may be used to restore a session from binary data containing a saved session state.If the sessionId is specified the current session is updated via
IAquimaSessionsMap.updateSession(IAquimaSession)else the session is added viaIAquimaSessionsMap.addSession(IAquimaSession)- Parameters:
sessionManager- the current session managerapplicationId- the id of the application to restoresessionState- Data containing a saved session state.sessionId- the optional sessionId to usemessageBus- the message bus that should be used by this sessioneventBus- the event bus that should be used by this session- Returns:
- An initialized session ready for use.
- Throws:
com.aquima.interactions.foundation.exception.AppException- This exception is thrown when the session could not be restored.- See Also:
-
getProjectDetails
This method returns the details about the application started running this session. This method should be used instead of using an IApplication (not recommended).- Parameters:
applicationId- the id of the application to get the details from- Returns:
- details about the application started running this session.
- Throws:
com.aquima.interactions.foundation.exception.AppException- When the application cannot be found.
-
activateSession
Activates the given session. SeeIAquimaSessionLifecyclefor details about the passivation-activation lifecycle.- Parameters:
session- the session that should be activated.
-
passivateSession
Passivates the given session. SeeIAquimaSessionLifecyclefor details about the passivation-activation lifecycle.- Parameters:
session- the session that should be passivated
-