Class ContainerContextTemplate

java.lang.Object
com.aquima.interactions.test.templates.context.EventContextTemplate
com.aquima.interactions.test.templates.context.ContainerContextTemplate

public class ContainerContextTemplate extends EventContextTemplate
Template that can be used to create a container context.
Since:
6.0
Author:
O. Kerpershoek
  • Constructor Details

    • ContainerContextTemplate

      public ContainerContextTemplate()
      Constructs the template with an new application template.
    • ContainerContextTemplate

      public ContainerContextTemplate(IApplicationTemplate application)
      Constructs the template with the specified application template.
      Parameters:
      application - The application template that should be used by the context.
  • Method Details

    • setContainerName

      public void setContainerName(String name)
      This method should be invoked to specify the name of the container.
      Parameters:
      name - The name of the container.
    • addParameter

      public void addParameter(String name, String strValue)
      This method may be used to add a parameter for the container.
      Parameters:
      name - The name of the parameter.
      strValue - The value of the parameter.
    • setAuditEngine

      public void setAuditEngine(com.aquima.interactions.foundation.logging.audit.IAuditEngine auditEngine)
      This method should be invoked to set a specific auditEngine.
      Parameters:
      auditEngine - The auditEngine
    • setCommentsManager

      public void setCommentsManager(com.aquima.interactions.portal.ICommentsManager commentsManager)
    • getApplicationTemplate

      public IApplicationTemplate getApplicationTemplate()
      Specified by:
      getApplicationTemplate in class EventContextTemplate
    • getContainerName

      protected String getContainerName()
    • getParameters

      public com.aquima.interactions.portal.model.def.TypedParameters getParameters()
    • toContext

      public com.aquima.interactions.portal.IContainerContext toContext()
      This method converts the template to a container context.
      Returns:
      Container context for the template.
    • toEventContext

      public com.aquima.interactions.portal.IContainerEventContext toEventContext()
      This method converts the template to a container event context.
      Returns:
      Container event context for the template.
    • addExpressionParameter

      public void addExpressionParameter(String name, String expressionValue)
      Add an expression parameter to the context.
      Parameters:
      name - The name of the parameter.
      expressionValue - The expression value.
      Throws:
      com.aquima.interactions.foundation.exception.AppException - When an error occurred parsing the expression.
    • addValueParameter

      public void addValueParameter(String name, com.aquima.interactions.foundation.IValue value)
      Add a value parameter to the context.
      Parameters:
      name - The name of the parameter.
      value - The value.
    • addReferenceParameter

      public void addReferenceParameter(String name, String refName)
      Add a reference parameter to the context.
      Parameters:
      name - The name of the parameter.
      refName - The name of the element referring to.
    • addReferenceParameters

      public void addReferenceParameters(String name, String... refNames)
      Add a reference parameter to the context.
      Parameters:
      name - The name of the parameter.
      refNames - The names of the elements referring to.
    • setParameters

      public void setParameters(com.aquima.interactions.portal.ITypedParameters parameters)
      This method can be used to set the container parameters.
      Parameters:
      parameters - The parameters.