All Implemented Interfaces:
JsonStreamingAction, ErrorCollection, BambooSessionAware, NavigationAware, DeploymentEnvironmentEditSecurityAware, DeploymentEnvironmentReadOnlyInterceptorAware, DeploymentEnvironmentViewConfigurationSecurityAware, DomainObjectSecurityAware, GlobalReadSecurityAware, ReturnUrlAware, com.atlassian.core.i18n.I18nTextProvider, com.atlassian.struts.TextProvider, com.atlassian.struts.ValidationAware, com.opensymphony.xwork.ValidationAware, com.opensymphony.xwork2.Action, com.opensymphony.xwork2.interceptor.ValidationAware, com.opensymphony.xwork2.LocaleProvider, com.opensymphony.xwork2.Preparable, com.opensymphony.xwork2.TextProvider, com.opensymphony.xwork2.Validateable, Serializable

public class DeleteEnvironmentTask extends ConfigureEnvironmentTasks implements com.opensymphony.xwork2.Preparable, DeploymentEnvironmentEditSecurityAware
See Also:
  • Constructor Details

    • DeleteEnvironmentTask

      public DeleteEnvironmentTask()
  • Method Details

    • prepare

      public void prepare() throws Exception
      Specified by:
      prepare in interface com.opensymphony.xwork2.Preparable
      Overrides:
      prepare in class ConfigureEnvironmentTasks
      Throws:
      Exception
    • confirmDelete

      public String confirmDelete()
    • execute

      public String execute()
      Specified by:
      execute in interface com.opensymphony.xwork2.Action
      Overrides:
      execute in class ConfigureEnvironmentTasks
    • getJsonObject

      @NotNull public @NotNull com.opensymphony.webwork.dispatcher.json.JSONObject getJsonObject() throws com.opensymphony.webwork.dispatcher.json.JSONException
      Description copied from class: BambooActionSupport
      This is default property read by webwork for webwork's result type "json".
      Overrides:
      getJsonObject in class BambooActionSupport
      Returns:
      Throws:
      com.opensymphony.webwork.dispatcher.json.JSONException
      See Also:
      • JSON Result

        If descending classes need to add anything to JSON response these should override #buildJsonObject() method.

    • getTaskId

      public long getTaskId()
    • setTaskId

      public void setTaskId(long taskId)
    • setEnvironmentTaskService

      public void setEnvironmentTaskService(EnvironmentTaskService environmentTaskService)
      Overrides:
      setEnvironmentTaskService in class ConfigureEnvironmentTasks