Class CreateDeploymentVersion

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

    • CreateDeploymentVersion

      public CreateDeploymentVersion()
  • Method Details

    • getSecuredDomainObject

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

      public void prepare() throws Exception
      Specified by:
      prepare in interface com.opensymphony.xwork2.Preparable
      Throws:
      Exception
    • execute

      public String execute() throws Exception
      Specified by:
      execute in interface com.opensymphony.xwork2.Action
      Overrides:
      execute in class com.opensymphony.xwork2.ActionSupport
      Throws:
      Exception
    • validate

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

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

      @Nullable public @Nullable PlanResultKey getLastVersionPlanResultKey()
    • getLatestResultSummaries

      public List<ResultsSummary> getLatestResultSummaries()
    • isBuildInThreeMostRecent

      public boolean isBuildInThreeMostRecent()
    • getMasterPlanBranches

      public List<ImmutableChainBranch> getMasterPlanBranches()
    • getPlaceholderBuildNumber

      public int getPlaceholderBuildNumber()
    • getLatestVersion

      @Nullable public @Nullable DeploymentVersion getLatestVersion()
    • canDeployFromCustomBranch

      public boolean canDeployFromCustomBranch()
    • getVersionName

      public String getVersionName()
    • setVersionName

      public void setVersionName(String name)
    • getDeploymentReleaseBranch

      public String getDeploymentReleaseBranch()
    • setDeploymentReleaseBranch

      public void setDeploymentReleaseBranch(String deploymentReleaseBranch)
    • getNextVersionName

      public String getNextVersionName()
    • getLinkedPlan

      public ImmutablePlan getLinkedPlan()
    • getLinkedPlanKey

      public String getLinkedPlanKey()
    • getDefaultDeploymentProjectBranchKey

      public String getDefaultDeploymentProjectBranchKey()
    • getMasterBranchKey

      public String getMasterBranchKey()
    • getVersionId

      public long getVersionId()
    • getDeploymentProject

      public DeploymentProject getDeploymentProject()
    • getDeploymentProjectId

      public long getDeploymentProjectId()
    • setDeploymentProjectId

      public void setDeploymentProjectId(long deploymentProjectId)
    • getBuildResult

      public String getBuildResult()
    • setBuildResult

      public void setBuildResult(String buildResult)
    • getBuildResultOther

      public String getBuildResultOther()
    • setBuildResultOther

      public void setBuildResultOther(String buildResultOther)
    • getPlanKey

      public String getPlanKey()
    • setPlanKey

      public void setPlanKey(String planKey)
    • getBuildNumber

      public int getBuildNumber()
    • setBuildNumber

      public void setBuildNumber(int buildNumber)
    • isDeploymentFromMainBranch

      public boolean isDeploymentFromMainBranch()
      Returns:
      true if deployment version is to be created out of branch configured in deployment project
    • isNamingSchemeAppliesToBranches

      public boolean isNamingSchemeAppliesToBranches()
    • setCachedPlanManager

      public void setCachedPlanManager(CachedPlanManager cachedPlanManager)
      Overrides:
      setCachedPlanManager in class BambooActionSupport
    • setResultsSummaryManager

      public void setResultsSummaryManager(ResultsSummaryManager resultsSummaryManager)
    • setDeploymentVersionService

      public void setDeploymentVersionService(DeploymentVersionService deploymentVersionService)
    • setCustomVariableContext

      public void setCustomVariableContext(CustomVariableContext customVariableContext)