Class CreateDeploymentVersion

    • Constructor Detail

      • CreateDeploymentVersion

        public CreateDeploymentVersion()
    • Method Detail

      • 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()
      • isBuildInThreeMostRecent

        public boolean isBuildInThreeMostRecent()
      • getPlaceholderBuildNumber

        public int getPlaceholderBuildNumber()
      • 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()
      • getLinkedPlanKey

        public String getLinkedPlanKey()
      • getDefaultDeploymentProjectBranchKey

        public String getDefaultDeploymentProjectBranchKey()
      • getMasterBranchKey

        public String getMasterBranchKey()
      • getVersionId

        public long getVersionId()
      • 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()
      • setResultsSummaryManager

        public void setResultsSummaryManager​(ResultsSummaryManager resultsSummaryManager)
      • setDeploymentVersionService

        public void setDeploymentVersionService​(DeploymentVersionService deploymentVersionService)
      • setCustomVariableContext

        public void setCustomVariableContext​(CustomVariableContext customVariableContext)