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 Summary
ConstructorsConstructorDescriptionAttributeGetterActionHandler
(String entityName, String attributeName) Create a new instance. -
Method Summary
-
Constructor Details
-
AttributeGetterActionHandler
Create a new instance.- Parameters:
entityName
- the name of the singleton entityattributeName
- the name of the attribute whose value should be obtained
-
-
Method Details
-
isReadOnly
public boolean isReadOnly()- Specified by:
isReadOnly
in interfacecom.aquima.interactions.portal.IActionHandler
-
handle
public com.aquima.interactions.portal.IActionResult handle(com.aquima.interactions.portal.IActionContext context) throws Exception - Specified by:
handle
in interfacecom.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
-