com.atlassian.jira.web.action.admin.issuetypes
Class AddNewIssueTypeToScheme

java.lang.Object
  extended by webwork.action.ActionSupport
      extended by com.atlassian.jira.action.JiraActionSupport
          extended by com.atlassian.jira.web.action.JiraWebActionSupport
              extended by com.atlassian.jira.web.action.admin.issuetypes.AddNewIssueTypeToScheme
All Implemented Interfaces:
ErrorCollection, I18nHelper, AddIssueTypeAction, HttpServletVariables, AuthorizationSupport, Serializable, webwork.action.Action, webwork.action.CommandDriven, webwork.action.IllegalArgumentAware

public class AddNewIssueTypeToScheme
extends JiraWebActionSupport
implements AddIssueTypeAction

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

Since:
v5.0.1
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class com.atlassian.jira.web.action.JiraWebActionSupport
JiraWebActionSupport.MessageType
 
Nested classes/interfaces inherited from interface com.atlassian.jira.util.ErrorCollection
ErrorCollection.Reason
 
Nested classes/interfaces inherited from interface com.atlassian.jira.util.I18nHelper
I18nHelper.BeanFactory
 
Field Summary
 
Fields inherited from class com.atlassian.jira.web.action.JiraWebActionSupport
ISSUE_NOT_FOUND_RESULT, PERMISSION_VIOLATION_RESULT, request, RETURN_URL_PARAMETER, savedFilters
 
Fields inherited from class com.atlassian.jira.action.JiraActionSupport
log
 
Fields inherited from class webwork.action.ActionSupport
command, errorMap, errorMessages
 
Fields inherited from interface webwork.action.Action
ERROR, INPUT, LOGIN, NONE, SUCCESS
 
Constructor Summary
AddNewIssueTypeToScheme(ManageableOptionType manageableOptionType, ConstantsManager constantsManager, IssueTypeSchemeManager schemeManager)
           
 
Method Summary
protected  String doExecute()
           
 String doInput()
           
protected  void doValidation()
           
 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<String,Object>> 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.
 
Methods inherited from class com.atlassian.jira.web.action.JiraWebActionSupport
addError, addErrorCollection, addErrorMessage, addErrorMessageByKeyIfAbsent, addErrorMessageIfAbsent, addMessageToResponse, addReason, addReasons, forceRedirect, getAdministratorContactLink, getApplicationProperties, getAuthorizationSupport, getConglomerateCookieValue, getConstantsManager, getDateFormat, getDateTimeFormat, getDateTimeFormatter, getDescTranslation, getDmyDateFormatter, getEmptyResponse, getErrorMessages, getErrors, getField, getFlushedErrorMessages, getGlobalPermissionManager, getHint, getHintManager, getHttpRequest, getHttpResponse, getHttpSession, getJiraContactHelper, getJiraServiceContext, getLanguage, getLoggedInApplicationUser, getLoggedInUser, getNameTranslation, getOutlookDate, getPermissionManager, getProjectManager, getRandomHint, getReasons, getRedirect, getRedirect, getRedirectSanitiser, getReturnUrl, getReturnUrlForCancelLink, getSearchSortDescriptions, getSelectedProject, getSelectedProjectObject, getServerId, getServletContext, getTimeFormat, getUriValidator, getUserFullName, getUserManager, getUserProjectHistoryManager, getVersionManager, getWebworkStack, getWebworkStack, getXsrfToken, hasErrorMessage, hasErrorMessageByKey, hasIssuePermission, hasPermission, hasProjectPermission, htmlEncode, insertContextPath, isHasIssuePermission, isHasIssuePermission, isHasPermission, isHasPermission, isHasPermission, isHasProjectPermission, isHasProjectPermission, isInlineDialogMode, isSystemAdministrator, isUserExists, isUserExistsByKey, isUserExistsByName, returnComplete, returnComplete, returnCompleteWithInlineRedirect, returnCompleteWithInlineRedirectAndMsg, returnCompleteWithInlineRedirectAndMsg, returnMsgToUser, returnMsgToUser, setConglomerateCookieValue, setInline, setReasons, setReturnUrl, setSelectedProjectId, urlEncode
 
Methods inherited from class com.atlassian.jira.action.JiraActionSupport
addErrorMessages, addErrorMessages, addErrors, addIllegalArgumentException, execute, getActionName, getComponentInstanceOfType, getDefaultResourceBundle, getDelegator, getI18nHelper, getKeysForPrefix, getLocale, getOfBizDelegator, getRemoteUser, getResourceBundle, getResult, getText, getText, getText, getText, getText, getText, getText, getText, getText, getText, getText, getText, getText, getText, getUnescapedText, getUntransformedRawText, getUserPreferences, getWatcherManager, hasAnyErrors, isIndexing, isKeyDefined, removeKeyOrAddError
 
Methods inherited from class webwork.action.ActionSupport
addError, addErrorMessage, doDefault, getCommandName, getHasErrorMessages, getHasErrors, getPropertyEditorMessage, getTexts, getTexts, getTimezone, invalidInput, invokeCommand, isCommand, setCommand, setErrorMessages, setErrors, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.atlassian.jira.util.ErrorCollection
addError, addErrorMessage, addErrorMessages, addErrors, hasAnyErrors, setErrorMessages
 
Methods inherited from interface webwork.action.CommandDriven
getCommandName, setCommand
 

Constructor Detail

AddNewIssueTypeToScheme

public AddNewIssueTypeToScheme(ManageableOptionType manageableOptionType,
                               ConstantsManager constantsManager,
                               IssueTypeSchemeManager schemeManager)
Method Detail

getIconurl

public String getIconurl()
Description copied from interface: AddIssueTypeAction
Get the Icon URL for the issue type.

Specified by:
getIconurl in interface AddIssueTypeAction
Returns:
the icon URL for the issue type.

setIconurl

public void setIconurl(String iconUrl)
Description copied from interface: AddIssueTypeAction
Set the Icon URL for the issue type.

Specified by:
setIconurl in interface AddIssueTypeAction
Parameters:
iconUrl - the icon URL for the issue type.

getStyle

public String getStyle()
Description copied from interface: AddIssueTypeAction
Get the style (i.e. subtask) of the issue type.

Specified by:
getStyle in interface AddIssueTypeAction
Returns:
the style of the issue type.

setStyle

public void setStyle(String style)
Description copied from interface: AddIssueTypeAction
Set the style (i.e. subtask) of the issue type.

Specified by:
setStyle in interface AddIssueTypeAction
Parameters:
style - the style (i.e. subtask) of the issue type.

getSubmitUrl

public String getSubmitUrl()
Description copied from interface: AddIssueTypeAction
Return the URL used for form submission.

Specified by:
getSubmitUrl in interface AddIssueTypeAction
Returns:
the URL for form submission.

getCancelUrl

public String getCancelUrl()
Description copied from interface: AddIssueTypeAction
The URL used for cancelling the form.

Specified by:
getCancelUrl in interface AddIssueTypeAction
Returns:
the URL for cancel URL.

getName

public String getName()
Description copied from interface: AddIssueTypeAction
Get the name of the issue type.

Specified by:
getName in interface AddIssueTypeAction
Returns:
the name of the issue type.

setName

public void setName(String name)
Description copied from interface: AddIssueTypeAction
Set the name of the issue type.

Specified by:
setName in interface AddIssueTypeAction
Parameters:
name - the name of the issue type.

getDescription

public String getDescription()
Description copied from interface: AddIssueTypeAction
Get the description of the issue type.

Specified by:
getDescription in interface AddIssueTypeAction
Returns:
the description of the issue type.

setDescription

public void setDescription(String description)
Description copied from interface: AddIssueTypeAction
Set the description of the issue type.

Specified by:
setDescription in interface AddIssueTypeAction
Parameters:
description - the description of the issue type.

getFieldId

public String getFieldId()

setFieldId

public void setFieldId(String fieldId)

getSchemeId

public Long getSchemeId()

setSchemeId

public void setSchemeId(Long schemeId)

getDefaultOption

public String getDefaultOption()

setDefaultOption

public void setDefaultOption(String defaultOption)

getSelectedOptions

public String[] getSelectedOptions()

setSelectedOptions

public void setSelectedOptions(String[] selectedOptions)

getSchemeName

public String getSchemeName()

setSchemeName

public void setSchemeName(String schemeName)

getSchemeDescription

public String getSchemeDescription()

setSchemeDescription

public void setSchemeDescription(String schemeDescription)

getProjectId

public Long getProjectId()

setProjectId

public void setProjectId(Long projectId)

getHiddenFields

public List<Pair<String,Object>> getHiddenFields()
Description copied from interface: AddIssueTypeAction
Return a list of {name, value} pairs to be added to the form as hidden fields.

Specified by:
getHiddenFields in interface AddIssueTypeAction
Returns:
the list of {name, value} pairs.

getManageableOption

public ManageableOptionType getManageableOption()
Specified by:
getManageableOption in interface AddIssueTypeAction

getNewIssueType

public IssueConstantOption getNewIssueType()

getAllOptions

public Collection<IssueConstantOption> getAllOptions()

doInput

public String doInput()

doValidation

protected void doValidation()
Overrides:
doValidation in class webwork.action.ActionSupport

doExecute

protected String doExecute()
                    throws CreateException
Overrides:
doExecute in class webwork.action.ActionSupport
Throws:
CreateException


Copyright © 2002-2014 Atlassian. All Rights Reserved.