Class ActionContextTemplate

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

public class ActionContextTemplate extends EventContextTemplate
Template that may be used to create an action context.
Since:
6.0
Author:
O. Kerpershoek
  • Constructor Details

    • ActionContextTemplate

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

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

    • addParameter

      public void addParameter(String name, Object attributeValue)
      This method may be invoked to add a parameter for the action handler.
      Parameters:
      name - The name of the parameter.
      attributeValue - The value of the parameter.
    • getParameters

      protected Map<String,Object> getParameters()
    • getApplicationTemplate

      public IApplicationTemplate getApplicationTemplate()
      This method returns the application template that is used by the action context.
      Specified by:
      getApplicationTemplate in class EventContextTemplate
      Returns:
      the application template that is used by the action context.
    • getActionName

      protected String getActionName()
    • setActionName

      public void setActionName(String name)
      This method should be invoked to set the name of the action handler.
      Parameters:
      name - The name of the action handler.
    • toContext

      public com.aquima.interactions.portal.IActionContext toContext()
      This method converts the template to an action context.
      Returns:
      Action context based on the template.