ChannelRequest

public class ChannelRequest

Service layer object denoting a Channel. Used by org.motechproject.tasks.service.ChannelService. It is used for registering new and updating already existent channels.

Constructors

ChannelRequest

public ChannelRequest(String displayName, String moduleName, String moduleVersion, String description, List<TriggerEventRequest> triggerTaskEvents, List<ActionEventRequest> actionTaskEvents)

Constructor.

Parameters:
  • displayName – the channel display name
  • moduleName – the module symbolic name
  • moduleVersion – the module version
  • description – the channel description
  • triggerTaskEvents – the triggers definitions
  • actionTaskEvents – the actions definitions

Methods

equals

public boolean equals(Object obj)

getActionTaskEvents

public List<ActionEventRequest> getActionTaskEvents()

Returns the task action events for this channel.

Returns:the task action events

getDescription

public String getDescription()

Returns the description of the channel.

Returns:the channel description

getDisplayName

public String getDisplayName()

Returns the display name of the channel.

Returns:the channel display name

getModuleName

public String getModuleName()

Returns the symbolic name of the module.

Returns:the module symbolic name

getModuleVersion

public String getModuleVersion()

Returns the version of the module.

Returns:the module version

getTriggerTaskEvents

public List<TriggerEventRequest> getTriggerTaskEvents()

Returns the task trigger events for this channel.

Returns:the task trigger events

hashCode

public int hashCode()

setModuleName

public void setModuleName(String moduleName)

Sets the module name of this channel.

Parameters:
  • moduleName – the channel module name

setModuleVersion

public void setModuleVersion(String moduleVersion)

Sets the module version of this channel.

Parameters:
  • moduleVersion – the module version

toString

public String toString()