Package com.aquima.web.aaas
Class DefaultBaasFlowStarter
java.lang.Object
com.aquima.web.aaas.DefaultBaasFlowStarter
- All Implemented Interfaces:
BaasFlowStarter
Default
BaasFlowStarter
implementation. This class can be used as a starting point for custom flow starters,
either via extension or via delegation.- Since:
- 11.4
- Author:
- Petru Galanton
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultBaasFlowStarter
(com.blueriq.component.api.security.IAuthorisationManager authManager, SessionHeadersProperties sessionHeadersProperties) -
Method Summary
Modifier and TypeMethodDescriptioncom.aquima.interactions.portal.IPortalSession
createSession
(com.aquima.interactions.portal.IApplication application) Creates the portal session in which the BAAS flow executes.protected Map
<String, Serializable> Returns the flow parameters, which will be added to the request scope.void
startFlow
(com.aquima.interactions.portal.IApplication application, com.aquima.interactions.portal.IWebServiceOperationDefinition operation, com.aquima.interactions.portal.IPortalSession session) Starts the flow (if any) for the given web service operation in the given session.
-
Constructor Details
-
DefaultBaasFlowStarter
public DefaultBaasFlowStarter(com.blueriq.component.api.security.IAuthorisationManager authManager, SessionHeadersProperties sessionHeadersProperties)
-
-
Method Details
-
createSession
public com.aquima.interactions.portal.IPortalSession createSession(com.aquima.interactions.portal.IApplication application) Description copied from interface:BaasFlowStarter
Creates the portal session in which the BAAS flow executes.- Specified by:
createSession
in interfaceBaasFlowStarter
- Parameters:
application
- the application for which a session should be created- Returns:
- the created session, never null.
-
startFlow
public void startFlow(com.aquima.interactions.portal.IApplication application, com.aquima.interactions.portal.IWebServiceOperationDefinition operation, com.aquima.interactions.portal.IPortalSession session) Description copied from interface:BaasFlowStarter
Starts the flow (if any) for the given web service operation in the given session.When this method is called, the input mapping (if any) of the operation is already performed. Implementations should check if the operation has an associated flow. It is not an error when the web service operation doesn't have a flow. In this case, implementations should simply return.
- Specified by:
startFlow
in interfaceBaasFlowStarter
- Parameters:
application
- the application definitionoperation
- the web service operationsession
- the session in which the flow should be started
-
getFlowParameters
Returns the flow parameters, which will be added to the request scope. May return null if there are no parameters. This class always returns null from this method. Subclasses may override this method to add flow parameters.- Returns:
- the flow parameters or null
-