Class VersionNamingSchemeImpl
- java.lang.Object
-
- com.atlassian.bamboo.deployments.projects.VersionNamingSchemeImpl
-
- All Implemented Interfaces:
BambooIdProvider,InternalVersionNamingScheme,VersionNamingScheme
public class VersionNamingSchemeImpl extends Object implements VersionNamingScheme
-
-
Field Summary
-
Fields inherited from interface com.atlassian.bamboo.deployments.projects.versionnaming.InternalVersionNamingScheme
DEFAULT_VERSION_NAME
-
-
Constructor Summary
Constructors Constructor Description VersionNamingSchemeImpl(MutableVersionNamingScheme versionNamingScheme)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetId()StringgetNextVersionName()String to be used as the next version name.Set<String>getVariablesToAutoIncrement()The list of variables Bamboo should auto increment on version creationbooleanisApplicableToBranches()Should the naming scheme be use when creating version for branches.booleanisAutoIncrement()Auto increment the whole version name when a version is automatically created
-
-
-
Constructor Detail
-
VersionNamingSchemeImpl
public VersionNamingSchemeImpl(MutableVersionNamingScheme versionNamingScheme)
-
-
Method Detail
-
getId
public long getId()
- Specified by:
getIdin interfaceBambooIdProvider
-
getNextVersionName
public String getNextVersionName()
Description copied from interface:InternalVersionNamingSchemeString to be used as the next version name. May contain variables that require substituting- Specified by:
getNextVersionNamein interfaceInternalVersionNamingScheme- Returns:
- version name
-
isAutoIncrement
public boolean isAutoIncrement()
Description copied from interface:InternalVersionNamingSchemeAuto increment the whole version name when a version is automatically created- Specified by:
isAutoIncrementin interfaceInternalVersionNamingScheme- Returns:
- true if Bamboo should autoincrement the version name
-
isApplicableToBranches
public boolean isApplicableToBranches()
Description copied from interface:InternalVersionNamingSchemeShould the naming scheme be use when creating version for branches. If false, simplified naming scheme is used for plan branches.- Specified by:
isApplicableToBranchesin interfaceInternalVersionNamingScheme
-
getVariablesToAutoIncrement
public Set<String> getVariablesToAutoIncrement()
Description copied from interface:InternalVersionNamingSchemeThe list of variables Bamboo should auto increment on version creation- Specified by:
getVariablesToAutoIncrementin interfaceInternalVersionNamingScheme- Returns:
- variable names to be incremented.
-
-