Class ProcessEnabledApplication
java.lang.Object
com.aquima.interactions.portal.model.process.ProcessEnabledApplication
- All Implemented Interfaces:
IApplication
,ILocalApplication
This internal Application class extension makes sure the the process engine and the process enabled session is
returned when requested.
- Since:
- 7.1
- Author:
- O. Kerpershoek, Jon van Leuven
-
Constructor Summary
ConstructorsConstructorDescriptionProcessEnabledApplication
(Application application, IModuleCache modules, IProcessMappingDS mappingDs, IProcessEngine processEngine) Constructs the process enabled application wrapper with the required arguments. -
Method Summary
Modifier and TypeMethodDescriptioncreateNonInteractiveSession
(IUserData user, IPortalMessageBus messageBus, IPortalEventBus eventBus) This method creates a new session for this application, with the specified message bus, event bus, channel and user.This method creates a new session object for the application specified.createSession
(Channel channel, IUserData user) This method creates a new session for this application.createSession
(Channel channel, IUserData user, IPortalMessageBus messageBus, IPortalEventBus eventBus) This method creates a new session for this application, with the specified message bus, event bus, channel and user.createSession
(IPortalMessageBus messageBus, IPortalEventBus eventBus) This method creates a new session object for the application specified.createSession
(ModuleID moduleId, Channel channel, IUserData user, IPortalMessageBus messageBus, IPortalEventBus eventBus) This method creates a new session for this application and the specified module, with the specified message bus, event bus, channel and userThis method returns an object containing the application specific configuration settings.This method returns the connection manager for the application.This method returns the factory manager for the application.getId()
This method returns the ID of the application.getModel()
This method returns an object containing the static application data.This method will return an application monitor object containing information about this portal application.This method returns the process engine for the current application.This method returns the resource manager for the application.This method returns the exposed web services for this application.boolean
This method returns whether processes are enabled for the applicationrestoreSession
(ISessionState sessionState, IPortalMessageBus messageBus, IPortalEventBus eventBus) This method may be used to restore a session from binary data containing a saved session state.restoreSession
(String sessionXml, IPortalMessageBus messageBus, IPortalEventBus eventBus) This method may be used to restore a session from an XML containing a saved session state.
-
Constructor Details
-
ProcessEnabledApplication
public ProcessEnabledApplication(Application application, IModuleCache modules, IProcessMappingDS mappingDs, IProcessEngine processEngine) throws InitializationException Constructs the process enabled application wrapper with the required arguments.- Parameters:
application
- the wrapped applicationmodules
- Object containing the modules of the application.mappingDs
- Data source for the task mapping.processEngine
- The process engine that is defined in this module, may be null.- Throws:
InitializationException
- This exception is thrown when the mapping could not be initialized.
-
-
Method Details
-
createSession
Description copied from interface:IApplication
This method creates a new session object for the application specified.- Specified by:
createSession
in interfaceIApplication
- Returns:
- A new portal session for the specified application.
- Throws:
AppException
- This exception is thrown when the session could not be created.
-
createSession
public IPortalSession createSession(IPortalMessageBus messageBus, IPortalEventBus eventBus) throws AppException Description copied from interface:IApplication
This method creates a new session object for the application specified.- Specified by:
createSession
in interfaceIApplication
- Parameters:
messageBus
- the message bus that should be used by the new sessioneventBus
- the event bus that should be used by the new session- Returns:
- A new portal session for the specified application.
- Throws:
AppException
- This exception is thrown when the session could not be created.
-
createSession
Description copied from interface:IApplication
This method creates a new session for this application. with the specified channel and user.- Specified by:
createSession
in interfaceIApplication
- Parameters:
channel
- the channel for which the session is starteduser
- the user of the client starting the session- Returns:
- A new portal session for the specified application
- Throws:
AppException
- This exception is thrown when the session could not be created
-
createSession
public IPortalSession createSession(Channel channel, IUserData user, IPortalMessageBus messageBus, IPortalEventBus eventBus) throws AppException Description copied from interface:IApplication
This method creates a new session for this application, with the specified message bus, event bus, channel and user.- Specified by:
createSession
in interfaceIApplication
- Parameters:
channel
- the channel for which the session is starteduser
- the user of the client starting the sessionmessageBus
- the message bus that will be shared between this session and any related (parent or child) sessionseventBus
- the event bus that will be shared between this session and any related (parent or child) sessions- Returns:
- A new portal session for the specified application
- Throws:
AppException
- This exception is thrown when the session could not be created
-
createSession
public IPortalSession createSession(ModuleID moduleId, Channel channel, IUserData user, IPortalMessageBus messageBus, IPortalEventBus eventBus) throws AppException Description copied from interface:IApplication
This method creates a new session for this application and the specified module, with the specified message bus, event bus, channel and user- Specified by:
createSession
in interfaceIApplication
- Parameters:
moduleId
- the module for which the session is createdchannel
- the channel for which the session is starteduser
- the user of the client starting the sessionmessageBus
- the message bus that will be shared between this session and any related (parent or child) sessionseventBus
- the event bus that will be shared between this session and any related (parent or child) sessions- Returns:
- A new portal session for the specified application
- Throws:
AppException
- This exception is thrown when the session could not be created
-
createNonInteractiveSession
public IPortalSession createNonInteractiveSession(IUserData user, IPortalMessageBus messageBus, IPortalEventBus eventBus) throws AppException Description copied from interface:IApplication
This method creates a new session for this application, with the specified message bus, event bus, channel and user.- Specified by:
createNonInteractiveSession
in interfaceIApplication
- Parameters:
user
- the user of the client starting the sessionmessageBus
- the message bus that will be shared between this session and any related (parent or child) sessionseventBus
- the event bus that will be shared between this session and any related (parent or child) sessions- Returns:
- A new portal session for the specified application
- Throws:
AppException
- This exception is thrown when the session could not be created
-
restoreSession
public IPortalSession restoreSession(ISessionState sessionState, IPortalMessageBus messageBus, IPortalEventBus eventBus) throws AppException Description copied from interface:IApplication
This method may be used to restore a session from binary data containing a saved session state.- Specified by:
restoreSession
in interfaceIApplication
- Parameters:
sessionState
- Data containing a saved session state.messageBus
- the message bus that will be shared between the restored session and any related (parent or child) sessionseventBus
- the event bus that will be shared between the restored session and any related (parent or child) sessions- Returns:
- An initialized session ready for use.
- Throws:
AppException
- This exception is thrown when the session could not be restored.- See Also:
-
restoreSession
public IPortalSession restoreSession(String sessionXml, IPortalMessageBus messageBus, IPortalEventBus eventBus) throws AppException Description copied from interface:IApplication
This method may be used to restore a session from an XML containing a saved session state.- Specified by:
restoreSession
in interfaceIApplication
- Parameters:
sessionXml
- XML containing a saved session state.messageBus
- the message bus that will be shared between the restored session and any related (parent or child) sessionseventBus
- the event bus that will be shared between the restored session and any related (parent or child) sessions- Returns:
- An initialized session ready for use.
- Throws:
AppException
- This exception is thrown when the session could not be restored.- See Also:
-
isProcessEnabled
public boolean isProcessEnabled()Description copied from interface:IApplication
This method returns whether processes are enabled for the application- Specified by:
isProcessEnabled
in interfaceIApplication
- Returns:
- True when this application supports processes, false otherwise
- See Also:
-
getProcessEngine
Description copied from interface:IApplication
This method returns the process engine for the current application.- Specified by:
getProcessEngine
in interfaceIApplication
- Returns:
- The process engine for the application.
- Throws:
AppException
- This exception is thrown when the application does not support processes.- See Also:
-
getProcessMapping
-
getId
Description copied from interface:IApplication
This method returns the ID of the application.- Specified by:
getId
in interfaceIApplication
- Returns:
- The ID of the application.
-
getConfiguration
Description copied from interface:IApplication
This method returns an object containing the application specific configuration settings.- Specified by:
getConfiguration
in interfaceIApplication
- Returns:
- an object containing the application specific configuration settings.
-
getMonitor
Description copied from interface:IApplication
This method will return an application monitor object containing information about this portal application.- Specified by:
getMonitor
in interfaceIApplication
- Returns:
- The portal monitor of the portal engine
-
getWebServices
Description copied from interface:IApplication
This method returns the exposed web services for this application.- Specified by:
getWebServices
in interfaceIApplication
- Returns:
- The exposed web services, never null.
-
getModel
Description copied from interface:ILocalApplication
This method returns an object containing the static application data. The getModule method is only intended for internal use.- Specified by:
getModel
in interfaceILocalApplication
- Returns:
- an object containing the static application data.
-
getResourceManager
Description copied from interface:ILocalApplication
This method returns the resource manager for the application.- Specified by:
getResourceManager
in interfaceILocalApplication
- Returns:
- the resource manager for the application.
-
getFactoryManager
Description copied from interface:ILocalApplication
This method returns the factory manager for the application.- Specified by:
getFactoryManager
in interfaceILocalApplication
- Returns:
- the factory manager for the application.
-
getConnectionManager
Description copied from interface:ILocalApplication
This method returns the connection manager for the application.- Specified by:
getConnectionManager
in interfaceILocalApplication
- Returns:
- the connection manager for the application.
-