Class AttributeGetterActionHandler

java.lang.Object
com.aquima.interactions.framework.session.AttributeGetterActionHandler
All Implemented Interfaces:
com.aquima.interactions.portal.IActionHandler

public class AttributeGetterActionHandler extends Object implements com.aquima.interactions.portal.IActionHandler
An action handler which can be used in tests to get the value of an attribute. The entity must be a singleton.
Since:
11.0
Author:
Petru Galanton
  • Constructor Details

    • AttributeGetterActionHandler

      public AttributeGetterActionHandler(String entityName, String attributeName)
      Create a new instance.
      Parameters:
      entityName - the name of the singleton entity
      attributeName - the name of the attribute whose value should be obtained
  • Method Details

    • isReadOnly

      public boolean isReadOnly()
      Specified by:
      isReadOnly in interface com.aquima.interactions.portal.IActionHandler
    • handle

      public com.aquima.interactions.portal.IActionResult handle(com.aquima.interactions.portal.IActionContext context) throws Exception
      Specified by:
      handle in interface com.aquima.interactions.portal.IActionHandler
      Throws:
      Exception
    • getValue

      public com.aquima.interactions.foundation.IValue getValue()
      Returns the value of the attribute.
      Returns:
      the value of the attribute