com.atlassian.bamboo.deployments.projects.persistence.versionnaming
Class MutableVersionNamingSchemeImpl

java.lang.Object
  extended by com.atlassian.core.bean.EntityObject
      extended by com.atlassian.bamboo.core.BambooEntityObject
          extended by com.atlassian.bamboo.deployments.projects.persistence.versionnaming.MutableVersionNamingSchemeImpl
All Implemented Interfaces:
BambooIdProvider, BambooObject, MutableVersionNamingScheme, InternalVersionNamingScheme, java.lang.Cloneable

public class MutableVersionNamingSchemeImpl
extends BambooEntityObject
implements MutableVersionNamingScheme


Field Summary
 
Fields inherited from class com.atlassian.bamboo.core.BambooEntityObject
id
 
Fields inherited from interface com.atlassian.bamboo.deployments.projects.versionnaming.InternalVersionNamingScheme
DEFAULT_VERSION_NAME
 
Constructor Summary
MutableVersionNamingSchemeImpl()
           
 
Method Summary
 java.lang.String getNextVersionName()
          String to be used as the next version name.
 java.util.Set<java.lang.String> getVariablesToAutoIncrement()
          The list of variables Bamboo should auto increment on version creation
 boolean isAutoIncrement()
          Auto increment the whole version name when a version is automatically created
 void setAutoIncrement(boolean autoIncrement)
           
 void setDeploymentProject(MutableDeploymentProject deploymentProject)
           
 void setNextVersionName(java.lang.String nextVersionName)
           
 java.lang.String toString()
           
 
Methods inherited from class com.atlassian.bamboo.core.BambooEntityObject
equals, getId, hashCode, setId
 
Methods inherited from class com.atlassian.core.bean.EntityObject
clone, getCreationDate, getCurrentDate, getLastModificationDate, setClock, setCreationDate, setLastModificationDate
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.atlassian.bamboo.core.BambooObject
setId
 
Methods inherited from interface com.atlassian.bamboo.core.BambooIdProvider
getId
 

Constructor Detail

MutableVersionNamingSchemeImpl

public MutableVersionNamingSchemeImpl()
Method Detail

getNextVersionName

public java.lang.String 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 interface InternalVersionNamingScheme
Returns:
version name

setNextVersionName

public void setNextVersionName(java.lang.String nextVersionName)
Specified by:
setNextVersionName in interface MutableVersionNamingScheme

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 interface InternalVersionNamingScheme
Returns:
true if Bamboo should autoincrement the version name

setAutoIncrement

public void setAutoIncrement(boolean autoIncrement)
Specified by:
setAutoIncrement in interface MutableVersionNamingScheme

setDeploymentProject

public void setDeploymentProject(MutableDeploymentProject deploymentProject)

getVariablesToAutoIncrement

public java.util.Set<java.lang.String> getVariablesToAutoIncrement()
Description copied from interface: InternalVersionNamingScheme
The list of variables Bamboo should auto increment on version creation

Specified by:
getVariablesToAutoIncrement in interface InternalVersionNamingScheme
Returns:
variable names to be incremented.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2013 Atlassian Software Systems Pty Ltd. All Rights Reserved.