|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
@Internal public interface VersionNamingService
Internal Service for managing version names. Manages concurrent operations around version names.
Method Summary | |
---|---|
String |
getIncrementedVersionName(String versionName)
Calculates an increment of a version name. |
MutableVersionNamingScheme |
getVersionNamingSchemeForProject(long deploymentProjectId)
Get the version naming configuration for a project |
MutableDeploymentVersion |
nameAndCreateVersion(InternalDeploymentProject deploymentProject,
ImmutablePlan linkedPlan,
MutableDeploymentVersion version,
String versionName,
String nextVersionName,
Map<String,VariableDefinitionContext> variables)
Takes a new deployment version, if new version name supplied, uses that, otherwise generates unique name based on version naming scheme. |
MutableDeploymentVersion |
renameVersion(long deploymentProjectId,
DeploymentVersion deploymentVersion,
String newVersionName)
Rename a version. |
MutableVersionNamingScheme |
updateVersionNamingSchemeForProject(long deploymentProjectId,
String nextVersionName,
boolean autoIncrement,
Set<String> variablesToAutoIncrement)
update the version naming configuration for a project |
Method Detail |
---|
@Nullable MutableVersionNamingScheme getVersionNamingSchemeForProject(long deploymentProjectId)
deploymentProjectId
- of the project
@NotNull MutableVersionNamingScheme updateVersionNamingSchemeForProject(long deploymentProjectId, String nextVersionName, boolean autoIncrement, @NotNull Set<String> variablesToAutoIncrement)
deploymentProjectId
- of the projectnextVersionName
- the value to be used for the next version nameautoIncrement
- whether the version name should be auto-incrementedautoIncrementVariables
- whether or not to increment bamboo variablesvariablesToAutoIncrement
- variables to increment
@NotNull MutableDeploymentVersion nameAndCreateVersion(@NotNull InternalDeploymentProject deploymentProject, @NotNull ImmutablePlan linkedPlan, @NotNull MutableDeploymentVersion version, @Nullable String versionName, @Nullable String nextVersionName, @NotNull Map<String,VariableDefinitionContext> variables) throws WebValidationException
deploymentProject
- the version belongs toversion
- the version to be named and saved.versionName
- (optional) name to be used for this versionnextVersionName
- (optional) the value the next version name should be set to.variables
- map containing variables available for version name creation (doesn't have to contain GLOBAL and SYSTEM variables)
WebValidationException
- on any error@NotNull String getIncrementedVersionName(@NotNull String versionName)
versionName
- to increment
@NotNull MutableDeploymentVersion renameVersion(long deploymentProjectId, DeploymentVersion deploymentVersion, String newVersionName) throws WebValidationException
deploymentProjectId
- deploymentVersion
- newVersionName
-
WebValidationException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |