Class ApplicationStore
java.lang.Object
com.aquima.interactions.portal.model.ApplicationStore
- All Implemented Interfaces:
IApplicationStore
The application store class is responsible for the loading and caching of application objects.
- Since:
- 5.0
- Author:
- O. Kerpershoek
-
Constructor Summary
ConstructorsConstructorDescriptionApplicationStore
(IPortalEngineDS datasource, IProcessEngineManager peManager, CaseEngineClient caseEngineClient, IAuditEngine auditEngine, ICommentsManager commentsManager) Constructs the application store using the provided data source. -
Method Summary
Modifier and TypeMethodDescriptionboolean
applicationExists
(ApplicationID applicationId) This method returns whether an application exists for the specified application ID.getApplication
(ApplicationID applicationId) This method returns the (cached) project for the specified ID.String[]
This method returns an array with all the available application names.Version[]
getApplicationVersions
(String applicationName) This method returns an array containing all the versions that are available for a specific application.protected void
processErrorReport
(ApplicationID applicationId, ApplicationMode applicationMode, InitializationReport report) boolean
resetCache
(Version applicationsVersion, String[] applicationNames) This method may be invoked to reset the application cache for applications with a specific version.boolean
resetCache
(String applicationName) This method may be invoked to reset the application cache for a specific application.
-
Constructor Details
-
ApplicationStore
public ApplicationStore(IPortalEngineDS datasource, IProcessEngineManager peManager, CaseEngineClient caseEngineClient, IAuditEngine auditEngine, ICommentsManager commentsManager) Constructs the application store using the provided data source.- Parameters:
datasource
- Data source that should be used to read the applications.peManager
- The optional engine manager responsible for providing process engine implementation(s).caseEngineClient
- The optional CaseEngineClient to communicate to the case engineauditEngine
- The AuditEngine to log audited actionscommentsManager
- The Comments Manager to add and find comments
-
-
Method Details
-
getApplicationNames
Description copied from interface:IApplicationStore
This method returns an array with all the available application names.- Specified by:
getApplicationNames
in interfaceIApplicationStore
- Returns:
- an array with all the available application names.
-
getApplicationVersions
Description copied from interface:IApplicationStore
This method returns an array containing all the versions that are available for a specific application.- Specified by:
getApplicationVersions
in interfaceIApplicationStore
- Parameters:
applicationName
- The name of the application for which the versions are requested.- Returns:
- Array containing all the versions that are available for a specific application.
-
getApplication
Description copied from interface:IApplicationStore
This method returns the (cached) project for the specified ID.- Specified by:
getApplication
in interfaceIApplicationStore
- Parameters:
applicationId
- The ID of the requested project.- Returns:
- The project object for the specified ID.
-
applicationExists
Description copied from interface:IApplicationStore
This method returns whether an application exists for the specified application ID. NOTE: In contrast toIApplicationStore.getApplication(ApplicationID)
this does NOT load the application/project.- Specified by:
applicationExists
in interfaceIApplicationStore
- Parameters:
applicationId
- The ID of the application/project that should be checked.- Returns:
- True if the application exists, false otherwise
-
resetCache
Description copied from interface:IApplicationStore
This method may be invoked to reset the application cache for a specific application.- Specified by:
resetCache
in interfaceIApplicationStore
- Parameters:
applicationName
- The name of the application for which the cache should be reset.- Returns:
- False if the application does not exist, true otherwise
-
resetCache
Description copied from interface:IApplicationStore
This method may be invoked to reset the application cache for applications with a specific version.- Specified by:
resetCache
in interfaceIApplicationStore
- Parameters:
applicationsVersion
- The version for the applications to reset the cache for. Must NOT be nullapplicationNames
- The applications (with this version) to reset the cache for. When null, reset the cache for all applications with this version- Returns:
- False if the version does not exist for any of the applications to reset the cache for, true otherwise
-
processErrorReport
protected void processErrorReport(ApplicationID applicationId, ApplicationMode applicationMode, InitializationReport report)
-