|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.bamboo.deployments.versions.service.VersionNamingServiceImpl
public class VersionNamingServiceImpl
Constructor Summary | |
---|---|
VersionNamingServiceImpl(DeploymentProjectDao deploymentProjectDao,
DeploymentResultDao deploymentResultDao,
ScopedExclusionService exclusionService,
DeploymentVersionDao deploymentVersionDao,
VariableDefinitionManager variableDefinitionManager,
VariableConfigurationService variableConfigurationService,
CustomVariableContext customVariableContext)
|
Method Summary | |
---|---|
java.lang.String |
getIncrementedVersionName(java.lang.String versionName)
Calculates an increment of a version name. |
protected java.lang.String |
getUniqueVersionName(long deploymentProjectId,
java.lang.String versionName)
|
protected com.atlassian.fugue.Pair<java.lang.String,java.lang.String> |
getUniqueVersionNameByAutoIncrementing(long deploymentProjectId,
MutableVersionNamingScheme versionNamingScheme,
java.lang.String nextSubstitutedName)
|
MutableVersionNamingScheme |
getVersionNamingSchemeForProject(long deploymentProjectId)
Get the version naming configuration for a project |
MutableDeploymentVersion |
nameAndCreateVersion(InternalDeploymentProject deploymentProject,
ImmutablePlan linkedPlan,
MutableDeploymentVersion deploymentVersion,
java.lang.String versionName,
java.lang.String nextVersionName,
java.util.Map<java.lang.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,
java.lang.String newVersionName)
Rename a version. |
MutableVersionNamingScheme |
updateVersionNamingSchemeForProject(long deploymentProjectId,
java.lang.String nextVersionName,
boolean autoIncrement,
java.util.Set<java.lang.String> variablesToAutoIncrement)
update the version naming configuration for a project |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public VersionNamingServiceImpl(DeploymentProjectDao deploymentProjectDao, DeploymentResultDao deploymentResultDao, ScopedExclusionService exclusionService, DeploymentVersionDao deploymentVersionDao, VariableDefinitionManager variableDefinitionManager, VariableConfigurationService variableConfigurationService, CustomVariableContext customVariableContext)
Method Detail |
---|
@Nullable public MutableVersionNamingScheme getVersionNamingSchemeForProject(long deploymentProjectId)
VersionNamingService
getVersionNamingSchemeForProject
in interface VersionNamingService
deploymentProjectId
- of the project
@NotNull public MutableVersionNamingScheme updateVersionNamingSchemeForProject(long deploymentProjectId, java.lang.String nextVersionName, boolean autoIncrement, @NotNull java.util.Set<java.lang.String> variablesToAutoIncrement)
VersionNamingService
updateVersionNamingSchemeForProject
in interface VersionNamingService
deploymentProjectId
- of the projectnextVersionName
- the value to be used for the next version nameautoIncrement
- whether the version name should be auto-incrementedvariablesToAutoIncrement
- variables to increment
@NotNull public MutableDeploymentVersion nameAndCreateVersion(@NotNull InternalDeploymentProject deploymentProject, @NotNull ImmutablePlan linkedPlan, @NotNull MutableDeploymentVersion deploymentVersion, @Nullable java.lang.String versionName, @Nullable java.lang.String nextVersionName, @NotNull java.util.Map<java.lang.String,VariableDefinitionContext> variables) throws WebValidationException
VersionNamingService
nameAndCreateVersion
in interface VersionNamingService
deploymentProject
- the version belongs todeploymentVersion
- 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 public java.lang.String getIncrementedVersionName(@NotNull java.lang.String versionName)
VersionNamingService
getIncrementedVersionName
in interface VersionNamingService
versionName
- to increment
@NotNull public MutableDeploymentVersion renameVersion(long deploymentProjectId, DeploymentVersion deploymentVersion, java.lang.String newVersionName) throws WebValidationException
VersionNamingService
renameVersion
in interface VersionNamingService
WebValidationException
@Nullable protected com.atlassian.fugue.Pair<java.lang.String,java.lang.String> getUniqueVersionNameByAutoIncrementing(long deploymentProjectId, MutableVersionNamingScheme versionNamingScheme, java.lang.String nextSubstitutedName)
protected java.lang.String getUniqueVersionName(long deploymentProjectId, java.lang.String versionName)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |