com.atlassian.jira.web.action.admin.customfields
Class CreateCustomField

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.JiraWizardActionSupport
                  extended by com.atlassian.jira.web.action.admin.customfields.CreateCustomField
All Implemented Interfaces:
ErrorCollection, I18nHelper, java.io.Serializable, webwork.action.Action, webwork.action.CommandDriven, webwork.action.IllegalArgumentAware

public class CreateCustomField
extends JiraWizardActionSupport

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface com.atlassian.jira.util.I18nHelper
I18nHelper.BeanFactory
 
Field Summary
static java.lang.String FIELD_TYPE_PREFIX
           
 
Fields inherited from class com.atlassian.jira.web.action.JiraWizardActionSupport
currentStep, finishButton, submitBtn
 
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
CreateCustomField(JiraContextTreeManager treeManager, CustomFieldValidator customFieldValidator, ConstantsManager constantsManager, CustomFieldManager customFieldManager, ProjectManager projectManager, SubTaskManager subTaskManager, ReindexMessageManager reindexMessageManager, CustomFieldContextConfigHelper customFieldContextConfigHelper)
           
 
Method Summary
 java.lang.String doAddDetails()
           
 java.lang.String doCustomFieldType()
           
 java.lang.String doDefault()
           
protected  java.lang.String doExecute()
           
 java.util.Collection getAllIssueTypes()
           
 java.util.Collection getAllProjectCategories()
           
 java.util.Collection getAllProjects()
           
 CustomFieldType getCustomFieldType()
           
 java.lang.String getDescription()
           
 java.lang.String getFieldName()
           
 java.lang.String getFieldType()
           
 java.util.Collection getFieldTypes()
           
 java.util.Map getGlobalContextOption()
           
 java.lang.String[] getIssuetypes()
           
 java.lang.Long[] getProjectCategories()
           
 java.lang.Long[] getProjects()
           
 java.lang.String getSearcher()
           
 java.util.List getSearchers()
           
 int getTotalSteps()
           
 boolean isBasicMode()
           
 boolean isFieldTypeValid()
          Returns true if the current field type is not null and valid.
 boolean isGlobal()
           
 void setBasicMode(boolean basicMode)
           
 void setDescription(java.lang.String description)
           
 void setFieldName(java.lang.String fieldName)
           
 void setFieldType(java.lang.String fieldType)
           
 void setGlobal(boolean global)
           
 void setIssuetypes(java.lang.String[] issuetypes)
           
 void setProjectCategories(java.lang.Long[] projectCategories)
           
 void setProjects(java.lang.Long[] projects)
           
 void setSearcher(java.lang.String searcher)
           
 
Methods inherited from class com.atlassian.jira.web.action.JiraWizardActionSupport
getCurrentStep, getFinishButton, getSubmitBtn, isButtonClickedByName, isButtonClickedByValue, isFinishClicked, isNextClicked, isPreviousClicked, setCurrentStep, setFinishButton, setSubmitBtn
 
Methods inherited from class com.atlassian.jira.web.action.JiraWebActionSupport
addErrorCollection, addErrorMessageByKeyIfAbsent, addErrorMessageIfAbsent, forceRedirect, getApplicationProperties, getAssignableUsers, getAssignableUsers, getCachedGroups, getComponentManager, getConglomerateCookieValue, getConstantsManager, getDateFormat, getDateTimeFormat, getDescTranslation, getExternalLinkUtils, getField, getFlushedErrorMessages, getGlobalPermissionManager, getHint, getHintManager, getJiraServiceContext, getLanguage, getNameTranslation, getOutlookDate, getPermissionManager, getProjectManager, getPropertySet, getRandomHint, getRedirect, getRemoteUser, getReturnUrl, getReturnUrlForCancelLink, getSearchSortDescriptions, getSelectedProject, getSelectedProjectObject, getServerId, getText, getTimeFormat, getUriValidator, getUserFullName, getUserProjectHistoryManager, getVersionManager, getWebworkStack, getWebworkStack, getXsrfToken, hasErrorMessage, hasErrorMessageByKey, htmlEncode, isHasIssuePermission, isHasIssuePermission, isHasPermission, isHasPermission, isHasPermission, isHasProjectPermission, isHasProjectPermission, isInlineDialogMode, isSystemAdministrator, isUserExists, returnComplete, returnComplete, returnCompleteWithInlineRedirect, setConglomerateCookieValue, setInline, setReturnUrl, setSelectedProjectId
 
Methods inherited from class com.atlassian.jira.action.JiraActionSupport
addErrorMessages, addErrorMessages, addErrors, addIllegalArgumentException, execute, getActionName, getDefaultResourceBundle, getDelegator, getKeysForPrefix, getLocale, getResult, getText, getText, getText, getText, getText, getText, getText, getText, getText0, getUnescapedText, getUserPreferences, getWatcherManager, hasAnyErrors, isEnterprise, isIndexing, isProfessional, isProfessionalOrEnterprise, isStandard, removeKeyOrAddError
 
Methods inherited from class webwork.action.ActionSupport
addError, addErrorMessage, doValidation, getCommandName, getErrorMessages, getErrors, 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, getErrorMessages, getErrors, hasAnyErrors, setErrorMessages
 
Methods inherited from interface webwork.action.CommandDriven
getCommandName, setCommand
 

Field Detail

FIELD_TYPE_PREFIX

public static final java.lang.String FIELD_TYPE_PREFIX
See Also:
Constant Field Values
Constructor Detail

CreateCustomField

public CreateCustomField(JiraContextTreeManager treeManager,
                         CustomFieldValidator customFieldValidator,
                         ConstantsManager constantsManager,
                         CustomFieldManager customFieldManager,
                         ProjectManager projectManager,
                         SubTaskManager subTaskManager,
                         ReindexMessageManager reindexMessageManager,
                         CustomFieldContextConfigHelper customFieldContextConfigHelper)
Method Detail

doDefault

public java.lang.String doDefault()
                           throws java.lang.Exception
Overrides:
doDefault in class webwork.action.ActionSupport
Throws:
java.lang.Exception

doExecute

protected java.lang.String doExecute()
                              throws java.lang.Exception
Overrides:
doExecute in class JiraWizardActionSupport
Throws:
java.lang.Exception

doCustomFieldType

public java.lang.String doCustomFieldType()
                                   throws java.lang.Exception
Throws:
java.lang.Exception

doAddDetails

public java.lang.String doAddDetails()
                              throws java.lang.Exception
Throws:
java.lang.Exception

getFieldTypes

public java.util.Collection getFieldTypes()

getSearchers

public java.util.List getSearchers()

getCustomFieldType

public CustomFieldType getCustomFieldType()

getAllProjects

public java.util.Collection getAllProjects()
                                    throws java.lang.Exception
Throws:
java.lang.Exception

getAllProjectCategories

public java.util.Collection getAllProjectCategories()
                                             throws java.lang.Exception
Throws:
java.lang.Exception

getAllIssueTypes

public java.util.Collection getAllIssueTypes()
                                      throws java.lang.Exception
Throws:
java.lang.Exception

getFieldName

public java.lang.String getFieldName()

setFieldName

public void setFieldName(java.lang.String fieldName)

getDescription

public java.lang.String getDescription()

setDescription

public void setDescription(java.lang.String description)

getFieldType

public java.lang.String getFieldType()

isFieldTypeValid

public boolean isFieldTypeValid()
Returns true if the current field type is not null and valid. This is used as a safety precaution against XSS. See JRA-21173.

Returns:
true if the current field type is not null and valid.

setFieldType

public void setFieldType(java.lang.String fieldType)

getSearcher

public java.lang.String getSearcher()

setSearcher

public void setSearcher(java.lang.String searcher)

getProjects

public java.lang.Long[] getProjects()

setProjects

public void setProjects(java.lang.Long[] projects)

getIssuetypes

public java.lang.String[] getIssuetypes()

setIssuetypes

public void setIssuetypes(java.lang.String[] issuetypes)

getGlobalContextOption

public java.util.Map getGlobalContextOption()

isGlobal

public boolean isGlobal()

setGlobal

public void setGlobal(boolean global)

isBasicMode

public boolean isBasicMode()

setBasicMode

public void setBasicMode(boolean basicMode)

getProjectCategories

public java.lang.Long[] getProjectCategories()

setProjectCategories

public void setProjectCategories(java.lang.Long[] projectCategories)

getTotalSteps

public int getTotalSteps()
Specified by:
getTotalSteps in class JiraWizardActionSupport


Copyright © 2002-2010 Atlassian. All Rights Reserved.