Channel¶
-
public class
Channel
¶ Represents a single task channel. Channel contains the list of triggers from the given module and the list of actions that can be taken by that module.
Constructors¶
Channel¶
Channel¶
-
public
Channel
(String displayName, String moduleName, String moduleVersion, String description, List<TriggerEvent> triggerTaskEvents, List<ActionEvent> actionTaskEvents)¶ Constructor.
Parameters: - displayName – the channel display name
- moduleName – the channel module name
- moduleVersion – the module version
- description – the channel description
- triggerTaskEvents – the list of events for provided triggers
- actionTaskEvents – the list of events for provided actions
Channel¶
-
public
Channel
(ChannelRequest channelRequest)¶ Constructor.
Parameters: - channelRequest – the channel request, not null
Methods¶
addActionTaskEvent¶
-
public void
addActionTaskEvent
(ActionEvent actionEvent)¶
containsAction¶
-
public boolean
containsAction
(TaskActionInformation actionInformation)¶
containsTrigger¶
-
public boolean
containsTrigger
(TaskTriggerInformation triggerInformation)¶
getAction¶
-
public ActionEvent
getAction
(TaskActionInformation actionInformation)¶
getActionTaskEvents¶
-
public List<ActionEvent>
getActionTaskEvents
()¶
getTrigger¶
-
public TriggerEvent
getTrigger
(TaskTriggerInformation triggerInformation)¶
getTriggerTaskEvents¶
-
public List<TriggerEvent>
getTriggerTaskEvents
()¶
setActionTaskEvents¶
-
public void
setActionTaskEvents
(List<ActionEvent> actionTaskEvents)¶
setTriggerTaskEvents¶
-
public void
setTriggerTaskEvents
(List<TriggerEvent> triggerTaskEvents)¶