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
(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)¶
getActionParameters¶
-
public SortedSet<ActionParameter>
getActionParameters
()¶
getPostActionParameters¶
-
public SortedSet<ActionParameter>
getPostActionParameters
()¶
getServiceMethodCallManner¶
-
public MethodCallManner
getServiceMethodCallManner
()¶
setActionParameters¶
-
public void
setActionParameters
(SortedSet<ActionParameter> actionParameters)¶
setPostActionParameters¶
-
public void
setPostActionParameters
(SortedSet<ActionParameter> postActionParameters)¶
setServiceMethodCallManner¶
-
public void
setServiceMethodCallManner
(MethodCallManner serviceMethodCallManner)¶
toDto¶
-
public ActionEventDto
toDto
()¶