public class

AddNewIssueTypeToScheme

extends JiraWebActionSupport
implements AddIssueTypeAction
java.lang.Object
   ↳ webwork.action.ActionSupport
     ↳ com.atlassian.jira.action.JiraActionSupport
       ↳ com.atlassian.jira.web.action.JiraWebActionSupport
         ↳ com.atlassian.jira.web.action.admin.issuetypes.AddNewIssueTypeToScheme

Class Overview

Will add a new issue type and then redirect the user back to the modify issue type scheme page.

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
AddNewIssueTypeToScheme(ManageableOptionType manageableOptionType, ConstantsManager constantsManager, IssueTypeSchemeManager schemeManager)
Public Methods
String doInput()
Collection<IssueConstantOption> getAllOptions()
String getCancelUrl()
The URL used for cancelling the form.
String getDefaultOption()
String getDescription()
Get the description of the issue type.
String getFieldId()
List<Pair<StringObject>> getHiddenFields()
Return a list of {name, value} pairs to be added to the form as hidden fields.
String getIconurl()
Get the Icon URL for the issue type.
ManageableOptionType getManageableOption()
String getName()
Get the name of the issue type.
IssueConstantOption getNewIssueType()
Long getProjectId()
String getSchemeDescription()
Long getSchemeId()
String getSchemeName()
String[] getSelectedOptions()
String getStyle()
Get the style (i.e.
String getSubmitUrl()
Return the URL used for form submission.
void setDefaultOption(String defaultOption)
void setDescription(String description)
Set the description of the issue type.
void setFieldId(String fieldId)
void setIconurl(String iconUrl)
Set the Icon URL for the issue type.
void setName(String name)
Set the name of the issue type.
void setProjectId(Long projectId)
void setSchemeDescription(String schemeDescription)
void setSchemeId(Long schemeId)
void setSchemeName(String schemeName)
void setSelectedOptions(String[] selectedOptions)
void setStyle(String style)
Set the style (i.e.
Protected Methods
String doExecute()
void doValidation()
[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.action.admin.issuetypes.AddIssueTypeAction
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 AddNewIssueTypeToScheme (ManageableOptionType manageableOptionType, ConstantsManager constantsManager, IssueTypeSchemeManager schemeManager)

Public Methods

public String doInput ()

public Collection<IssueConstantOption> getAllOptions ()

public String getCancelUrl ()

The URL used for cancelling the form.

Returns
  • the URL for cancel URL.

public String getDefaultOption ()

public String getDescription ()

Get the description of the issue type.

Returns
  • the description of the issue type.

public String getFieldId ()

public List<Pair<StringObject>> getHiddenFields ()

Return a list of {name, value} pairs to be added to the form as hidden fields.

Returns
  • the list of {name, value} pairs.

public String getIconurl ()

Get the Icon URL for the issue type.

Returns
  • the icon URL for the issue type.

public ManageableOptionType getManageableOption ()

public String getName ()

Get the name of the issue type.

Returns
  • the name of the issue type.

public IssueConstantOption getNewIssueType ()

public Long getProjectId ()

public String getSchemeDescription ()

public Long getSchemeId ()

public String getSchemeName ()

public String[] getSelectedOptions ()

public String getStyle ()

Get the style (i.e. subtask) of the issue type.

Returns
  • the style of the issue type.

public String getSubmitUrl ()

Return the URL used for form submission.

Returns
  • the URL for form submission.

public void setDefaultOption (String defaultOption)

public void setDescription (String description)

Set the description of the issue type.

Parameters
description the description of the issue type.

public void setFieldId (String fieldId)

public void setIconurl (String iconUrl)

Set the Icon URL for the issue type.

Parameters
iconUrl the icon URL for the issue type.

public void setName (String name)

Set the name of the issue type.

Parameters
name the name of the issue type.

public void setProjectId (Long projectId)

public void setSchemeDescription (String schemeDescription)

public void setSchemeId (Long schemeId)

public void setSchemeName (String schemeName)

public void setSelectedOptions (String[] selectedOptions)

public void setStyle (String style)

Set the style (i.e. subtask) of the issue type.

Parameters
style the style (i.e. subtask) of the issue type.

Protected Methods

protected String doExecute ()

protected void doValidation ()