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

public Channel()

Constructor.

Channel

public Channel(String displayName, String moduleName, String moduleVersion)

Constructor.

Parameters:
  • displayName – the channel display name
  • moduleName – the channel module name
  • moduleVersion – the module version

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)

equals

public boolean equals(Object obj)

getAction

public ActionEvent getAction(TaskActionInformation actionInformation)

getActionTaskEvents

public List<ActionEvent> getActionTaskEvents()

getDescription

public String getDescription()

getDisplayName

public String getDisplayName()

getModuleName

public String getModuleName()

getModuleVersion

public String getModuleVersion()

getTrigger

public TriggerEvent getTrigger(TaskTriggerInformation triggerInformation)

getTriggerTaskEvents

public List<TriggerEvent> getTriggerTaskEvents()

hashCode

public int hashCode()

setActionTaskEvents

public void setActionTaskEvents(List<ActionEvent> actionTaskEvents)

setDescription

public void setDescription(String description)

setDisplayName

public void setDisplayName(String displayName)

setModuleName

public void setModuleName(String moduleName)

setModuleVersion

public void setModuleVersion(String moduleVersion)

setTriggerTaskEvents

public void setTriggerTaskEvents(List<TriggerEvent> triggerTaskEvents)

toString

public String toString()