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
-
Method Summary
Modifier and TypeMethodDescriptionString to be used as the next version name.The list of variables Bamboo should auto increment on version creationboolean
Should the naming scheme be use when creating version for branches.boolean
Auto increment the whole version name when a version is automatically createdvoid
setApplicableToBranches
(boolean applicableToBranches) void
setAutoIncrement
(boolean autoIncrement) void
setDeploymentProject
(MutableDeploymentProject deploymentProject) void
setNextVersionName
(String nextVersionName) void
setVariablesToAutoIncrement
(Set<String> variablesToAutoIncrement) toString()
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
-
Constructor Details
-
MutableVersionNamingSchemeImpl
public MutableVersionNamingSchemeImpl()
-
-
Method Details
-
getNextVersionName
Description copied from interface:InternalVersionNamingScheme
String to be used as the next version name. May contain variables that require substituting- Specified by:
getNextVersionName
in interfaceInternalVersionNamingScheme
- Returns:
- version name
-
setNextVersionName
- Specified by:
setNextVersionName
in interfaceMutableVersionNamingScheme
-
isAutoIncrement
public boolean isAutoIncrement()Description copied from interface:InternalVersionNamingScheme
Auto increment the whole version name when a version is automatically created- Specified by:
isAutoIncrement
in interfaceInternalVersionNamingScheme
- Returns:
- true if Bamboo should autoincrement the version name
-
setAutoIncrement
public void setAutoIncrement(boolean autoIncrement) - Specified by:
setAutoIncrement
in interfaceMutableVersionNamingScheme
-
isApplicableToBranches
public boolean isApplicableToBranches()Description copied from interface:InternalVersionNamingScheme
Should the naming scheme be use when creating version for branches. If false, simplified naming scheme is used for plan branches.- Specified by:
isApplicableToBranches
in interfaceInternalVersionNamingScheme
-
setApplicableToBranches
public void setApplicableToBranches(boolean applicableToBranches) - Specified by:
setApplicableToBranches
in interfaceMutableVersionNamingScheme
-
setDeploymentProject
- Specified by:
setDeploymentProject
in interfaceMutableVersionNamingScheme
-
getVariablesToAutoIncrement
Description copied from interface:InternalVersionNamingScheme
The list of variables Bamboo should auto increment on version creation- Specified by:
getVariablesToAutoIncrement
in interfaceInternalVersionNamingScheme
- Returns:
- variable names to be incremented.
-
setVariablesToAutoIncrement
- Specified by:
setVariablesToAutoIncrement
in interfaceMutableVersionNamingScheme
-
toString
-