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, HttpServletVariables, AuthorizationSupport, 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 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
static 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(CustomFieldValidator customFieldValidator, ConstantsManager constantsManager, CustomFieldManager customFieldManager, ProjectManager projectManager, SubTaskManager subTaskManager, CustomFieldDescription customFieldDescription, FeatureManager featureManager, ManagedConfigurationItemService managedConfigurationItemService, CustomFieldService customFieldService)
           
 
Method Summary
 String doAddDetails()
           
 String doCustomFieldType()
           
 String doDefault()
           
protected  String doExecute()
           
 Collection getAllIssueTypes()
           
 Collection getAllProjectCategories()
           
 Collection getAllProjects()
           
 CustomFieldType getCustomFieldType()
           
 String getDescription()
           
 RenderableProperty getDescriptionProperty()
           
 String getFieldName()
           
 String getFieldType()
           
 Collection getFieldTypes()
           
 Map getGlobalContextOption()
           
 String[] getIssuetypes()
           
 Long[] getProjectCategories()
           
 Long[] getProjects()
           
 String getSearcher()
           
 List getSearchers()
           
 int getTotalSteps()
           
 boolean isBasicMode()
           
 boolean isFieldTypeValid()
          Returns true if the current field type is not null and valid.
 boolean isGlobal()
           
 boolean isOnDemand()
           
 void setBasicMode(boolean basicMode)
           
 void setDescription(String description)
           
 void setFieldName(String fieldName)
           
 void setFieldType(String fieldType)
           
 void setGlobal(boolean global)
           
 void setIssuetypes(String[] issuetypes)
           
 void setProjectCategories(Long[] projectCategories)
           
 void setProjects(Long[] projects)
           
 void setSearcher(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
addError, addErrorCollection, addErrorMessage, addErrorMessageByKeyIfAbsent, addErrorMessageIfAbsent, addMessageToResponse, addReason, addReasons, forceRedirect, getAdministratorContactLink, getApplicationProperties, getAuthorizationSupport, getConglomerateCookieValue, getConstantsManager, getDateFormat, getDateTimeFormat, getDateTimeFormatter, getDescTranslation, getDmyDateFormatter, 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, doValidation, 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
 

Field Detail

FIELD_TYPE_PREFIX

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

CreateCustomField

public CreateCustomField(CustomFieldValidator customFieldValidator,
                         ConstantsManager constantsManager,
                         CustomFieldManager customFieldManager,
                         ProjectManager projectManager,
                         SubTaskManager subTaskManager,
                         CustomFieldDescription customFieldDescription,
                         FeatureManager featureManager,
                         ManagedConfigurationItemService managedConfigurationItemService,
                         CustomFieldService customFieldService)
Method Detail

doDefault

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

doExecute

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

doCustomFieldType

public String doCustomFieldType()
                         throws Exception
Throws:
Exception

doAddDetails

public String doAddDetails()
                    throws Exception
Throws:
Exception

getFieldTypes

public Collection getFieldTypes()

getSearchers

public List getSearchers()

getDescriptionProperty

public RenderableProperty getDescriptionProperty()

getCustomFieldType

public CustomFieldType getCustomFieldType()

getAllProjects

public Collection getAllProjects()
                          throws Exception
Throws:
Exception

getAllProjectCategories

public Collection getAllProjectCategories()
                                   throws Exception
Throws:
Exception

getAllIssueTypes

public Collection getAllIssueTypes()
                            throws Exception
Throws:
Exception

getFieldName

public String getFieldName()

setFieldName

public void setFieldName(String fieldName)

getDescription

public String getDescription()

setDescription

public void setDescription(String description)

getFieldType

public 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(String fieldType)

getSearcher

public String getSearcher()

isOnDemand

public boolean isOnDemand()

setSearcher

public void setSearcher(String searcher)

getProjects

public Long[] getProjects()

setProjects

public void setProjects(Long[] projects)

getIssuetypes

public String[] getIssuetypes()

setIssuetypes

public void setIssuetypes(String[] issuetypes)

getGlobalContextOption

public Map getGlobalContextOption()

isGlobal

public boolean isGlobal()

setGlobal

public void setGlobal(boolean global)

isBasicMode

public boolean isBasicMode()

setBasicMode

public void setBasicMode(boolean basicMode)

getProjectCategories

public Long[] getProjectCategories()

setProjectCategories

public void setProjectCategories(Long[] projectCategories)

getTotalSteps

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


Copyright © 2002-2013 Atlassian. All Rights Reserved.