Class ApplicationStore

java.lang.Object
com.aquima.interactions.portal.model.ApplicationStore
All Implemented Interfaces:
IApplicationStore

public class ApplicationStore extends Object implements IApplicationStore
The application store class is responsible for the loading and caching of application objects.
Since:
5.0
Author:
O. Kerpershoek
  • 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 engine
      auditEngine - The AuditEngine to log audited actions
      commentsManager - The Comments Manager to add and find comments
  • Method Details

    • getApplicationNames

      public String[] getApplicationNames()
      Description copied from interface: IApplicationStore
      This method returns an array with all the available application names.
      Specified by:
      getApplicationNames in interface IApplicationStore
      Returns:
      an array with all the available application names.
    • getApplicationVersions

      public Version[] getApplicationVersions(String applicationName)
      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 interface IApplicationStore
      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

      public ISolution getApplication(ApplicationID applicationId)
      Description copied from interface: IApplicationStore
      This method returns the (cached) project for the specified ID.
      Specified by:
      getApplication in interface IApplicationStore
      Parameters:
      applicationId - The ID of the requested project.
      Returns:
      The project object for the specified ID.
    • applicationExists

      public boolean applicationExists(ApplicationID applicationId)
      Description copied from interface: IApplicationStore
      This method returns whether an application exists for the specified application ID. NOTE: In contrast to IApplicationStore.getApplication(ApplicationID) this does NOT load the application/project.
      Specified by:
      applicationExists in interface IApplicationStore
      Parameters:
      applicationId - The ID of the application/project that should be checked.
      Returns:
      True if the application exists, false otherwise
    • resetCache

      public boolean resetCache(String applicationName)
      Description copied from interface: IApplicationStore
      This method may be invoked to reset the application cache for a specific application.
      Specified by:
      resetCache in interface IApplicationStore
      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

      public boolean resetCache(Version applicationsVersion, String[] applicationNames)
      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 interface IApplicationStore
      Parameters:
      applicationsVersion - The version for the applications to reset the cache for. Must NOT be null
      applicationNames - 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)