public class

ListEventTypes

extends JiraWebActionSupport
java.lang.Object
   ↳ webwork.action.ActionSupport
     ↳ com.atlassian.jira.action.JiraActionSupport
       ↳ com.atlassian.jira.web.action.JiraWebActionSupport
         ↳ com.atlassian.jira.web.action.admin.eventtype.ListEventTypes

Summary

[Expand]
Inherited Constants
From class com.atlassian.jira.web.action.JiraWebActionSupport
From interface webwork.action.Action
[Expand]
Inherited Fields
From class com.atlassian.jira.web.action.JiraWebActionSupport
From class com.atlassian.jira.action.JiraActionSupport
From class webwork.action.ActionSupport
Public Constructors
ListEventTypes(EventTypeManager eventTypeManager, WorkflowManager workflowManager, TemplateManager templateManager)
Public Methods
String doAddEventType()
String doDeleteEventType()
String doEditEventType()
Map<LongString> getAssociatedNotificationSchemes(EventType eventType)
Retrieve a map of scheme ids to scheme names that are associsated with this EventType
MultiMap getAssociatedWorkflows(EventType eventType)
Determines which workflows and transitions are associated with the specified eventType.
String getDescription()
Long getEventTypeId()
EventTypeManager getEventTypeManager()
String getName()
List getShortList(Collection<ActionDescriptor> transitions)
Creates a short list of the workflow transitions limited to ListEventTypes#SHORT_LIST_COUNT
String getStepId(String workflowName, long actionDescriptorId)
Determine a suitable stepId for the *ViewWorkflowTransition* link in the event type list.
Long getTemplateId()
TemplateManager getTemplateManager()
String getType()
boolean isConfirmed()
void setConfirmed(boolean confirmed)
void setDescription(String description)
void setEventTypeId(Long eventTypeId)
void setName(String name)
void setTemplateId(Long templateId)
void setType(String type)
Protected Methods
String doExecute()
[Expand]
Inherited Methods
From class com.atlassian.jira.web.action.JiraWebActionSupport
From class com.atlassian.jira.action.JiraActionSupport
From class webwork.action.ActionSupport
From class java.lang.Object
From interface com.atlassian.jira.util.ErrorCollection
From interface com.atlassian.jira.util.I18nHelper
From interface com.atlassian.jira.web.HttpServletVariables
From interface com.atlassian.jira.web.util.AuthorizationSupport
From interface webwork.action.Action
From interface webwork.action.CommandDriven
From interface webwork.action.IllegalArgumentAware

Public Constructors

public ListEventTypes (EventTypeManager eventTypeManager, WorkflowManager workflowManager, TemplateManager templateManager)

Public Methods

public String doAddEventType ()

public String doDeleteEventType ()

public String doEditEventType ()

public Map<LongString> getAssociatedNotificationSchemes (EventType eventType)

Retrieve a map of scheme ids to scheme names that are associsated with this EventType

Parameters
eventType the EventType
Returns
  • Map of scheme ids -> scheme names

public MultiMap getAssociatedWorkflows (EventType eventType)

Determines which workflows and transitions are associated with the specified eventType.

The event type can be associated with a workflow through a post function on any of the workflow transitions.

Parameters
eventType event type
Returns

public String getDescription ()

public Long getEventTypeId ()

public EventTypeManager getEventTypeManager ()

public String getName ()

public List getShortList (Collection<ActionDescriptor> transitions)

Creates a short list of the workflow transitions limited to ListEventTypes#SHORT_LIST_COUNT

Parameters
transitions a collection of workflow transitions
Returns
  • List a list of workflow transitions limited to ListEventTypes#SHORT_LIST_COUNT in size

public String getStepId (String workflowName, long actionDescriptorId)

Determine a suitable stepId for the *ViewWorkflowTransition* link in the event type list. It is only necessary to retireve the first step id for the link as the screen for the transition is the same for each step.

The initial step *Create Issue* does not have a related step id and is not needed for the link - so return null in this case.

public Long getTemplateId ()

public TemplateManager getTemplateManager ()

public String getType ()

public boolean isConfirmed ()

public void setConfirmed (boolean confirmed)

public void setDescription (String description)

public void setEventTypeId (Long eventTypeId)

public void setName (String name)

public void setTemplateId (Long templateId)

public void setType (String type)

Protected Methods

protected String doExecute ()

Throws
Exception