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

Methods

addActionTaskEvent

public void addActionTaskEvent(ActionEvent actionEvent)

containsAction

public boolean containsAction(TaskActionInformation actionInformation)

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()

getTriggerTaskEvents

public List<TriggerEvent> getTriggerTaskEvents()

hashCode

public int hashCode()

isProvidesTriggers

public boolean isProvidesTriggers()

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)

setProvidesTriggers

public void setProvidesTriggers(boolean providesTriggers)

setTriggerTaskEvents

public void setTriggerTaskEvents(List<TriggerEvent> triggerTaskEvents)

toDto

public ChannelDto toDto()

toString

public String toString()