public class EditEnvironmentTask 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 TaskDefinition |
taskDefinition |
protected boolean |
taskDisabled |
protected long |
taskId |
protected String |
taskName |
protected String |
userDescription |
conditions, deploymentProjectService, environment, environmentId, environmentTaskService, INVALID_PLUGIN, selectedCondition, taskManager, taskOwnerFactory, taskUIConfigBean
ACCESS_DENIED, administrationConfigurationAccessor, administrationConfigurationManager, administrationConfigurationPersister, AGGREGATE_URL_PATTERN, authenticationContext, bambooPermissionManager, bambooUserManager, BUILD_KEY_CONTEXT, buildDefinitionManager, cachedPlanManager, CONFIRM, cookieCutter, featureManager, PAGE_NOT_FOUND, PLAN_KEY_CONTEXT, planExecutionManager, planManager, pluginAccessor, projectManager, webInterfaceManager
Constructor and Description |
---|
EditEnvironmentTask() |
Modifier and Type | Method and Description |
---|---|
String |
conditionHtml(String conditionPluginKey) |
String |
execute() |
String |
getEditHtml() |
com.opensymphony.webwork.dispatcher.json.JSONObject |
getJsonObject()
This is default property read by webwork for webwork's result type "json".
|
String |
getSubmitAction() |
TaskDefinition |
getTaskDefinition() |
TaskHelpLink |
getTaskHelpLink() |
long |
getTaskId() |
String |
getTaskName() |
String |
getUserDescription() |
String |
input() |
boolean |
isConditionalTask() |
boolean |
isTaskDisabled() |
void |
prepare() |
void |
setConditionalTask(boolean conditionalTask) |
void |
setTaskDisabled(boolean taskDisabled) |
void |
setTaskId(long taskId) |
void |
setTaskName(String taskName) |
void |
setUserDescription(String userDescription) |
void |
validate() |
getAvailableCategoryJson, getAvailableTasks, getConditions, getDeploymentProject, getEnvironment, getEnvironmentId, getExistingTasks, getFinalisingTasks, getSecuredDomainObject, getSelectedCondition, getTaskById, getTaskConditions, isDeleted, isReadOnly, isSaved, setDeleted, setEnvironmentId, setEnvironmentTaskService, setSaved, setSelectedCondition, setTaskManager, setTaskOwnerFactory, setTaskUIConfigBean
addActionError, addActionError, addActionWarning, addError, addError, addErrorCollection, addErrorMessage, addErrorMessage, addErrorMessages, addErrors, addFieldErrors, addHelpPanel, addIllegalArgumentException, areCheckBoxesEmpty, buildJsonObject, buildWebPanelContext, checkFieldXssSafety, createFieldValidator, doDefault, 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, hasRestrictedAdminPermission, isCheckboxSetInAction, isEc2ConfigurationWarningRequired, isEnableJavascript, isEnableSignup, isInlineDialog, isRestrictedAdminEnabled, isSelectFieldAndNull, isViewContactDetailsEnabled, renderFreemarkerTemplate, setAdministrationConfigurationAccessor, setAdministrationConfigurationManager, setAdministrationConfigurationPersister, setAuthenticationContext, setBambooLicenseManager, setBambooPermissionManager, setBambooUserManager, setBuildDefinitionManager, setCachedPlanManager, setChainEquiv, setCheckBoxFields, setCookieCutter, setCurrentFormTheme, setDecorator, setDeploymentProjectService, setDocumentationLinkProvider, setEnableJavascript, 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, 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
protected TaskDefinition taskDefinition
public void prepare() throws Exception
prepare
in interface com.opensymphony.xwork2.Preparable
prepare
in class ConfigureEnvironmentTasks
Exception
public String input()
input
in class com.opensymphony.xwork2.ActionSupport
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 conditionHtml(String conditionPluginKey)
conditionHtml
in class ConfigureEnvironmentTasks
public String getSubmitAction()
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 TaskDefinition getTaskDefinition()
public TaskHelpLink getTaskHelpLink()
Copyright © 2020 Atlassian Software Systems Pty Ltd. All rights reserved.