Class MutableVersionNamingSchemeImpl
- java.lang.Object
-
- com.atlassian.core.bean.EntityObject
-
- com.atlassian.bamboo.core.BambooEntityObject
-
- com.atlassian.bamboo.deployments.projects.persistence.versionnaming.MutableVersionNamingSchemeImpl
-
- All Implemented Interfaces:
BambooIdProvider,BambooObject,MutableVersionNamingScheme,InternalVersionNamingScheme,Cloneable
@Entity public class MutableVersionNamingSchemeImpl extends BambooEntityObject implements MutableVersionNamingScheme
-
-
Field Summary
-
Fields inherited from interface com.atlassian.bamboo.deployments.projects.versionnaming.InternalVersionNamingScheme
DEFAULT_VERSION_NAME
-
-
Constructor Summary
Constructors Constructor Description MutableVersionNamingSchemeImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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 createdvoidsetApplicableToBranches(boolean applicableToBranches)voidsetAutoIncrement(boolean autoIncrement)voidsetDeploymentProject(MutableDeploymentProject deploymentProject)voidsetNextVersionName(String nextVersionName)voidsetVariablesToAutoIncrement(Set<String> variablesToAutoIncrement)StringtoString()-
Methods inherited from class com.atlassian.core.bean.EntityObject
clone, equals, getCreationDate, getCurrentDate, getId, getLastModificationDate, hashCode, setClock, setCreationDate, setId, setLastModificationDate
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.atlassian.bamboo.core.BambooIdProvider
getId
-
Methods inherited from interface com.atlassian.bamboo.core.BambooObject
setId
-
-
-
-
Method Detail
-
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
-
setNextVersionName
public void setNextVersionName(String nextVersionName)
- Specified by:
setNextVersionNamein interfaceMutableVersionNamingScheme
-
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
-
setAutoIncrement
public void setAutoIncrement(boolean autoIncrement)
- Specified by:
setAutoIncrementin interfaceMutableVersionNamingScheme
-
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
-
setApplicableToBranches
public void setApplicableToBranches(boolean applicableToBranches)
- Specified by:
setApplicableToBranchesin interfaceMutableVersionNamingScheme
-
setDeploymentProject
public void setDeploymentProject(MutableDeploymentProject deploymentProject)
- Specified by:
setDeploymentProjectin interfaceMutableVersionNamingScheme
-
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.
-
setVariablesToAutoIncrement
public void setVariablesToAutoIncrement(Set<String> variablesToAutoIncrement)
- Specified by:
setVariablesToAutoIncrementin interfaceMutableVersionNamingScheme
-
-