java.lang.Object
com.opensymphony.xwork2.ActionSupport
com.atlassian.bamboo.ww2.BambooActionSupport
com.atlassian.bamboo.deployments.environments.actions.CreateEnvironment
All Implemented Interfaces:
JsonStreamingAction, ErrorCollection, BambooSessionAware, NavigationAware, DeploymentProjectEditSecurityAware, DeploymentProjectReadOnlyInterceptorAware, 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 CreateEnvironment extends BambooActionSupport implements com.opensymphony.xwork2.Preparable, DeploymentProjectEditSecurityAware
See Also:
  • Constructor Details

    • CreateEnvironment

      public CreateEnvironment()
  • Method Details

    • prepare

      public void prepare()
      Specified by:
      prepare in interface com.opensymphony.xwork2.Preparable
    • doDefault

      public String doDefault()
      Description copied from class: BambooActionSupport
      Default action just sends to the input
      Overrides:
      doDefault in class BambooActionSupport
    • execute

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

      public Environment getEnvironment()
    • getSecuredDomainObject

      public DeploymentProject getSecuredDomainObject()
      Specified by:
      getSecuredDomainObject in interface DeploymentProjectReadOnlyInterceptorAware
      Specified by:
      getSecuredDomainObject in interface DomainObjectSecurityAware
      Overrides:
      getSecuredDomainObject in class BambooActionSupport
    • getIsolationType

      public String getIsolationType()
    • setIsolationType

      public void setIsolationType(String deploymentEnvironmentIsolation)
    • validate

      public void validate()
      Specified by:
      validate in interface com.opensymphony.xwork2.Validateable
      Overrides:
      validate in class com.opensymphony.xwork2.ActionSupport
    • hasDeploymentProjectPlanMultipleBranches

      public boolean hasDeploymentProjectPlanMultipleBranches()
    • getBranchName

      public String getBranchName(String planKeyString)
      This method provides initial data for branch picker control
      Parameters:
      planKeyString - identifies plan
      Returns:
      displayable branch name of a plan
    • getDeploymentProjectId

      public long getDeploymentProjectId()
    • setDeploymentProjectId

      public void setDeploymentProjectId(long deploymentProjectId)
    • getName

      public String getName()
    • setName

      public void setName(String name)
    • getDescription

      public String getDescription()
    • setDescription

      public void setDescription(String description)
    • getId

      public long getId()
    • getDeploymentProject

      public DeploymentProject getDeploymentProject()
    • getUiConfigBean

      public UIConfigSupport getUiConfigBean()
    • setUiConfigBean

      public void setUiConfigBean(UIConfigSupport uiConfigBean)
    • setEnvironmentTriggerService

      public void setEnvironmentTriggerService(EnvironmentTriggerService environmentTriggerService)
    • setCustomVariableContext

      public void setCustomVariableContext(CustomVariableContext customVariableContext)
    • getReleaseApprovalPrerequisite

      public ReleaseApprovalPrerequisite getReleaseApprovalPrerequisite()
    • setReleaseApprovalPrerequisite

      public void setReleaseApprovalPrerequisite(ReleaseApprovalPrerequisite releaseApprovalPrerequisite)
    • setFeatureManager

      public void setFeatureManager(FeatureManager featureManager)
      Overrides:
      setFeatureManager in class BambooActionSupport
    • getEnvironmentIsolationOptions

      public Map<String,String> getEnvironmentIsolationOptions()
    • getDockerHandlers

      public List<DockerConfigurationProviders.Config> getDockerHandlers()
    • getPossibleReleaseApprovalPrerequisites

      public List<ReleaseApprovalPrerequisite> getPossibleReleaseApprovalPrerequisites()