public class CreateEnvironmentTask extends ConfigureEnvironmentTasks implements com.opensymphony.xwork2.Preparable
BambooActionSupport.JSONStatus
Modifier and Type | Field and Description |
---|---|
protected boolean |
conditionalTask |
protected com.opensymphony.webwork.dispatcher.json.JSONObject |
jsonObject |
protected boolean |
taskDisabled |
protected long |
taskId |
protected String |
taskName |
protected String |
userDescription |
conditions, deploymentProjectService, environment, environmentId, environmentTaskService, INVALID_PLUGIN, selectedCondition, taskManager, taskOwnerFactory, taskUIConfigBean
bambooPermissionManager
ACCESS_DENIED, administrationConfigurationAccessor, administrationConfigurationManager, administrationConfigurationPersister, AGGREGATE_URL_PATTERN, authenticationContext, bambooUserManager, BUILD_KEY_CONTEXT, buildDefinitionManager, cachedPlanManager, CONFIRM, cookieCutter, featureManager, PAGE_NOT_FOUND, PLAN_KEY_CONTEXT, planExecutionManager, planManager, pluginAccessor, projectManager, webInterfaceManager
Constructor and Description |
---|
CreateEnvironmentTask() |
Modifier and Type | Method and Description |
---|---|
String |
doDefault()
Default action just sends to the input
|
String |
execute() |
String |
getCreateTaskKey() |
String |
getEditHtml() |
com.opensymphony.webwork.dispatcher.json.JSONObject |
getJsonObject()
This is default property read by webwork for webwork's result type "json".
|
String |
getSubmitAction() |
TaskHelpLink |
getTaskHelpLink() |
long |
getTaskId() |
String |
getTaskName() |
String |
getUserDescription() |
boolean |
isConditionalTask() |
boolean |
isTaskDisabled() |
void |
prepare() |
void |
setConditionalTask(boolean conditionalTask) |
void |
setCreateTaskKey(String createTaskKey) |
void |
setTaskDisabled(boolean taskDisabled) |
void |
setTaskId(long taskId) |
void |
setTaskName(String taskName) |
void |
setUserDescription(String userDescription) |
void |
validate() |
conditionHtml, getAvailableCategoryJson, getAvailableTasks, getConditions, getDeploymentProject, getEnvironment, getEnvironmentId, getExistingTasks, getFinalisingTasks, getSecuredDomainObject, getSelectedCondition, getTaskById, getTaskConditions, isDeleted, isSaved, setDeleted, setEnvironmentId, setEnvironmentTaskService, setSaved, setSelectedCondition, setTaskManager, setTaskOwnerFactory, setTaskUIConfigBean
isReadOnly
isRepositorySpecsManaged
addActionError, addActionError, addActionWarning, addError, addError, addErrorCollection, addErrorMessage, addErrorMessage, addErrorMessages, addErrors, addFieldErrors, addHelpPanel, addIllegalArgumentException, areCheckBoxesEmpty, buildJsonObject, buildWebPanelContext, checkFieldXssSafety, createFieldValidator, doesHelpLinkHaveMatchingTitle, doesLabelKeyHaveMatchingDescription, doExecute, doInput, forceRelativeReturnUrl, getActionWarnings, getAdministrationConfiguration, getBamboo, getBambooLicenseManager, getBambooPermissionManager, getBambooSession, getBambooUrl, getBambooUserManager, getBaseUrl, getBestBaseUrl, getBootstrapManager, getBreadCrumbs, getChainEquiv, getConcurrentBuildsEnabled, getConglomerateCookieValue, getCookieCutter, getCookieValue, getCurrentFormTheme, getCurrentSystemTime, getCurrentUrl, getDefaultPersister, getDescriptionFromLabelKey, getElasticConfig, getErrorMessages, getErrors, getFeatureManager, getFieldErrorAccessTracker, getFieldErrors, getFlushedErrorMessages, getFormattedActionErrors, getFormattedActionMessages, getFormattedActionWarnings, getHelpPanels, getInstanceName, getJobEquiv, getNavigationContext, getNavigationUrl, getNumberOfCurrentlyBuildingPlans, getPlan, getPlanManager, getPluginAccessor, getReturnUrl, getServerLifecycleState, getSessionUser, getText, getText, getText, getText, getText, getText, getText, getText, getText, getText, getText, getText, getTextProvider, getTexts, getTexts, getTextWithArgs, getTotalErrors, getUser, getValidatorContext, getWebFragmentsContextMap, getWebItemsForSection, getWebPanelContext, getWebSectionsForLocation, hasActionWarnings, hasAdminPermission, hasAnyErrors, hasBuilds, hasEntityPermission, hasGlobalAdminPermission, hasGlobalPermission, hasGlobalPermission, hasKey, hasPlanPermission, hasPlanPermission, hasProjectPermission, hasProjectPermission, hasRestrictedAdminPermission, hasResultKeyReadPermission, isCheckboxSetInAction, isEnableJavascript, isEnableSignup, isInlineDialog, isRestrictedAdminEnabled, isSelectFieldAndNull, isViewContactDetailsEnabled, renderFreemarkerTemplate, setAdministrationConfigurationAccessor, setAdministrationConfigurationManager, setAdministrationConfigurationPersister, setAuthenticationContext, setBambooLicenseManager, setBambooPermissionManager, setBambooUserManager, setBuildDefinitionManager, setCachedPlanManager, setChainEquiv, setCheckBoxFields, setCookieCutter, setCurrentFormTheme, setDecorator, setDeploymentProjectService, setDocumentationLinkProvider, setEnableJavascript, setEnvironmentService, setErrorMessages, setFeatureManager, setI18nBeanFactory, setJobEquiv, setJsonator, setLocalizedTextProvider, setNavigationContext, setPlanExecutionManager, setPlanManager, setPluginAccessor, setProfile, setProjectManager, setReturnUrl, setServerLifecycleProvider, setWebInterfaceManager, streamJson, toJson, toJson
addActionMessage, addFieldError, clearActionErrors, clearErrors, clearErrorsAndMessages, clearFieldErrors, clearMessages, clone, getActionErrors, getActionMessages, getContainer, getFormatted, getLocale, getLocaleProvider, hasActionErrors, hasActionMessages, hasErrors, hasFieldErrors, input, isValidLocale, isValidLocaleString, pause, setActionErrors, setActionMessages, setContainer, setFieldErrors
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAllErrorMessages
protected long taskId
protected String taskName
protected String userDescription
protected boolean taskDisabled
protected boolean conditionalTask
protected com.opensymphony.webwork.dispatcher.json.JSONObject jsonObject
public void prepare() throws Exception
prepare
in interface com.opensymphony.xwork2.Preparable
prepare
in class ConfigureEnvironmentTasks
Exception
public String doDefault() throws Exception
BambooActionSupport
doDefault
in class BambooActionSupport
Exception
public String execute()
execute
in interface com.opensymphony.xwork2.Action
execute
in class ConfigureEnvironmentTasks
public void validate()
validate
in interface com.opensymphony.xwork2.Validateable
validate
in class com.opensymphony.xwork2.ActionSupport
@NotNull public com.opensymphony.webwork.dispatcher.json.JSONObject getJsonObject() throws com.opensymphony.webwork.dispatcher.json.JSONException
BambooActionSupport
getJsonObject
in class BambooActionSupport
com.opensymphony.webwork.dispatcher.json.JSONException
If descending classes need to add anything to JSON response these should override {@link #buildJsonObject()} method.
public String getSubmitAction()
public void setCreateTaskKey(String createTaskKey)
public String getCreateTaskKey()
public String getEditHtml()
public long getTaskId()
public void setTaskId(long taskId)
public String getTaskName()
public void setTaskName(String taskName)
public String getUserDescription()
public void setUserDescription(String userDescription)
public boolean isTaskDisabled()
public void setTaskDisabled(boolean taskDisabled)
public boolean isConditionalTask()
public void setConditionalTask(boolean conditionalTask)
public TaskHelpLink getTaskHelpLink()
Copyright © 2021 Atlassian Software Systems Pty Ltd. All rights reserved.