Class CompositeDS
java.lang.Object
com.aquima.interactions.ds.composite.CompositeDS
- All Implemented Interfaces:
IPortalEngineDS
,IProcessManagerDS
Portal engine data source implementation that may be used to combine several data sources. This class is final, as it
should be wrapped instead of extended.
- Since:
- 6.0
- Author:
- O. Kerpershoek, F. van der Meer
-
Field Summary
Fields inherited from interface com.aquima.interactions.portal.ds.IPortalEngineDS
CATEGORY
-
Constructor Summary
ConstructorsConstructorDescriptionCompositeDS
(IAquimaConfiguration configuration) Constructs the data source with the required arguments. -
Method Summary
Modifier and TypeMethodDescriptionThis method should return the default factory manager for the portal engine (required).This method should return the default resource manager for the portal engine (required).This method provides the data-source for the specified process module.getProjectLoader
(ApplicationID id, IInitializationReport report) This method provides the data-source for the specified project.getTimer()
This method should return a time implementation to act on timed events.This method returns the user scope dao that is responsible for storing user specific data across applications and sessionsvoid
iterateApplications
(IApplicationVisitor visitor) This method should invoke the visitor for each application that this data-source can provide.void
iterateModules
(IModuleVisitor visitor) This method should iterate over all the process modules, and add each module to the provided visitor.void
setDatasources
(Map<String, IPortalEngineDS> nameToDatasource) This method may be used to set the data sources of this composite.
-
Constructor Details
-
CompositeDS
Constructs the data source with the required arguments.- Parameters:
configuration
- The configuration that should be used.
-
-
Method Details
-
setDatasources
This method may be used to set the data sources of this composite. The key of the map should be the name of the datasource, and the value the actual datasource implementation.- Parameters:
nameToDatasource
- Map containing the data sources that should be combined by this composite.
-
getProjectLoader
Description copied from interface:IPortalEngineDS
This method provides the data-source for the specified project.- Specified by:
getProjectLoader
in interfaceIPortalEngineDS
- Parameters:
id
- An identifier of the project for which the data-source is requested.report
- The report that should be used to add initialization messages to.- Returns:
- a new data-source that can provide the data needed to initialize an application.
-
getDefaultFactoryManager
Description copied from interface:IPortalEngineDS
This method should return the default factory manager for the portal engine (required).- Specified by:
getDefaultFactoryManager
in interfaceIPortalEngineDS
- Returns:
- the default factory manager for the portal engine (required).
-
getDefaultResourceManager
Description copied from interface:IPortalEngineDS
This method should return the default resource manager for the portal engine (required).- Specified by:
getDefaultResourceManager
in interfaceIPortalEngineDS
- Specified by:
getDefaultResourceManager
in interfaceIProcessManagerDS
- Returns:
- the default resource manager for the portal engine (required).
-
iterateApplications
Description copied from interface:IPortalEngineDS
This method should invoke the visitor for each application that this data-source can provide.- Specified by:
iterateApplications
in interfaceIPortalEngineDS
- Parameters:
visitor
- Application visitor that can be used to add the available applications to.
-
getTimer
Description copied from interface:IPortalEngineDS
This method should return a time implementation to act on timed events.- Specified by:
getTimer
in interfaceIPortalEngineDS
- Specified by:
getTimer
in interfaceIProcessManagerDS
- Returns:
- the timer implementation (required).
-
getUserScopeDao
Description copied from interface:IPortalEngineDS
This method returns the user scope dao that is responsible for storing user specific data across applications and sessions- Specified by:
getUserScopeDao
in interfaceIPortalEngineDS
- Returns:
- The user scope dao, may not be null
-
getModuleLoader
Description copied from interface:IProcessManagerDS
This method provides the data-source for the specified process module. The getModuleLoader method is mainly invoked to reload the model of a process engine.- Specified by:
getModuleLoader
in interfaceIProcessManagerDS
- Parameters:
id
- An identifier of the module for which the data-source is requested.- Returns:
- a new data-source that can provide the data needed to initialize a process engine.
-
iterateModules
Description copied from interface:IProcessManagerDS
This method should iterate over all the process modules, and add each module to the provided visitor.- Specified by:
iterateModules
in interfaceIProcessManagerDS
- Parameters:
visitor
- The visitor that should be used to add the process modules to.
-