Class ConfigurationTemplate

java.lang.Object
com.aquima.interactions.test.templates.ConfigurationTemplate

public class ConfigurationTemplate extends Object
The configuration template can be used to specify application parameters.
Since:
6.0
Author:
O. Kerpershoek
  • Constructor Details

    • ConfigurationTemplate

      public ConfigurationTemplate()
      Constructs the configuration template with the default values.
  • Method Details

    • getSpellEngine

      protected SpellEngineTemplate getSpellEngine()
    • isCachingEnabled

      protected boolean isCachingEnabled()
    • getTraceDao

      protected com.aquima.interactions.trace.dao.ITraceDao getTraceDao()
    • setTraceDao

      public void setTraceDao(com.aquima.interactions.trace.dao.ITraceDao traceDao)
    • getApplicationMode

      protected com.aquima.interactions.portal.ApplicationMode getApplicationMode()
    • setApplicationMode

      public void setApplicationMode(com.aquima.interactions.portal.ApplicationMode mode)
      This method can be used to override the application mode. The default application mode is DEV.
      Parameters:
      mode - The application mode of the application.
    • getResourceManager

      public com.aquima.interactions.foundation.io.IResourceManager getResourceManager()
      This method returns the current resource manager.
      Returns:
      The current resource manager.
    • setResourceManager

      public void setResourceManager(com.aquima.interactions.foundation.io.IResourceManager resourceManager)
      This method set the current resource manager.
      Parameters:
      resourceManager - The resource manager to use.
    • isReadonlyDuringExpand

      protected boolean isReadonlyDuringExpand()
    • setReadonlyDuringExpand

      public void setReadonlyDuringExpand(boolean readonlyDuringExpand)
      This method can be used to override the readonly-during-expand parameter. The default value for this parameter is true.
      Parameters:
      readonlyDuringExpand - Boolean indicating if the profile is readonly in the expand of dynamic containers.
    • shouldWrapFailedElements

      protected boolean shouldWrapFailedElements()
    • shouldOutputFailedMasks

      protected boolean shouldOutputFailedMasks()
    • setWrapFailedElements

      public void setWrapFailedElements(boolean wrapElements)
      This method can be used to override the wrap-failed-elements parameter. The default value for this parameter id true.
      Parameters:
      wrapElements - Boolean indicating if failed elements should be replaced or throw an exception.
    • setOutputFailedMasks

      public void setOutputFailedMasks(boolean outputFailedMasks)
      This method can be used to override the output failed masks parameter. The default value for this parameter id true.
      Parameters:
      outputFailedMasks - Boolean indicating if failed masks should be included in the document or throw an exception.
    • isTargetDownCastingEnabled

      protected boolean isTargetDownCastingEnabled()
    • setTargetDownCastingEnabled

      public void setTargetDownCastingEnabled(boolean enabled)
      This method can be used to enable down-casting in rules (disabled by default).
      Parameters:
      enabled - Boolean indicating if down-casting is allowed in rules.
    • getFactoryManager

      public FactoryManagerTemplate getFactoryManager()
      This method returns the factory manager template.
      Returns:
      the factory manager template.
    • getConnectionManager

      public ConnectionManagerTemplate getConnectionManager()
      This method returns the connection manager template.
      Returns:
      the connection manager template.
    • getMatchConfigurationFile

      protected String getMatchConfigurationFile()
    • setMatchConfigurationFile

      public void setMatchConfigurationFile(String matchConfigurationFile)
      This method can be used to specify the location of the match configuration XML.
      Parameters:
      matchConfigurationFile - the location of the match configuration XML.
    • getCaseProvider

      protected com.aquima.interactions.ds.matching.ICaseProvider getCaseProvider()
    • setCaseProvider

      public void setCaseProvider(com.aquima.interactions.ds.matching.ICaseProvider caseProvider)
      This method can be used to specify the case provider for the match engine.
      Parameters:
      caseProvider - the case provider for the match engine.
    • getParserVersion

      protected String getParserVersion()
    • setParserVersion

      public void setParserVersion(String version)
      This method may be used to specify the version of the expression parser (for instance 4.2 or 6.4).
      Parameters:
      version - The version of the expression parser that should be used.
    • toConfiguration

      public com.aquima.interactions.ds.IAquimaConfiguration toConfiguration()
      This method converts the template to an aquima configuration object.
      Returns:
      an aquima configuration object.
    • toApplicationConfiguration

      public com.aquima.interactions.ds.IApplicationConfiguration toApplicationConfiguration()
      This method converts the template to an application configuration object.
      Returns:
      an application configuration object.
    • getTimer

      public TimerTemplate getTimer()
    • getUserScopeDao

      public com.aquima.interactions.userscope.dao.IUserScopeDao getUserScopeDao()
    • getProcessCaseDao

      protected com.aquima.interactions.process.dao.IProcessCaseDao getProcessCaseDao()
    • setProcessCaseDao

      public void setProcessCaseDao(com.aquima.interactions.process.dao.IProcessCaseDao dao)