ActionEvent

public class ActionEvent extends TaskEvent

Represents an action from a channel. An action is taken once a task is triggered. This class is the representation of the definition from the channel, not the representation of an usage within task. An action can be represented as an event, but also as a direct OSGi message(or both - a service call with the event acting as a fallback way of executing the action).

Constructors

ActionEvent

public ActionEvent()

Constructor.

ActionEvent

public ActionEvent(String name, String description, String displayName, String subject, String serviceInterface, String serviceMethod, MethodCallManner serviceMethodCallManner, SortedSet<ActionParameter> actionParameters)

Constructor.

ActionEvent

public ActionEvent(String name, String description, String displayName, String subject, String serviceInterface, String serviceMethod, MethodCallManner serviceMethodCallManner, SortedSet<ActionParameter> actionParameters, SortedSet<ActionParameter> postActionParameters)

Constructor.

Parameters:
  • name – the action name
  • description – the action description
  • displayName – the action display name
  • subject – the action event subject
  • serviceInterface – the event service interface
  • serviceMethod – the event service method
  • serviceMethodCallManner – the event service call manner, for supported values see {@see MethodCallManner}
  • actionParameters – the action parameters
  • postActionParameters – the post action parameters

ActionEvent

public ActionEvent(ActionEvent actionEvent)

Methods

accept

public boolean accept(TaskActionInformation info)

addParameter

public void addParameter(ActionParameter parameter, boolean changeOrder)

containsParameter

public boolean containsParameter(String key)

equals

public boolean equals(Object obj)

getActionParameters

public SortedSet<ActionParameter> getActionParameters()

getPostActionParameters

public SortedSet<ActionParameter> getPostActionParameters()

getServiceInterface

public String getServiceInterface()

getServiceMethod

public String getServiceMethod()

getServiceMethodCallManner

public MethodCallManner getServiceMethodCallManner()

hasService

public boolean hasService()

hashCode

public int hashCode()

setActionParameters

public void setActionParameters(SortedSet<ActionParameter> actionParameters)

setPostActionParameters

public void setPostActionParameters(SortedSet<ActionParameter> postActionParameters)

setServiceInterface

public void setServiceInterface(String serviceInterface)

setServiceMethod

public void setServiceMethod(String serviceMethod)

setServiceMethodCallManner

public void setServiceMethodCallManner(MethodCallManner serviceMethodCallManner)

toDto

public ActionEventDto toDto()

toString

public String toString()