com.atlassian.bamboo.deployments.projects
Class VersionNamingSchemeImpl

java.lang.Object
  extended by com.atlassian.bamboo.deployments.projects.VersionNamingSchemeImpl
All Implemented Interfaces:
BambooIdProvider, InternalVersionNamingScheme, VersionNamingScheme

public class VersionNamingSchemeImpl
extends java.lang.Object
implements VersionNamingScheme


Field Summary
 
Fields inherited from interface com.atlassian.bamboo.deployments.projects.versionnaming.InternalVersionNamingScheme
DEFAULT_VERSION_NAME
 
Constructor Summary
VersionNamingSchemeImpl(MutableVersionNamingScheme versionNamingScheme)
           
 
Method Summary
 long getId()
           
 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VersionNamingSchemeImpl

public VersionNamingSchemeImpl(MutableVersionNamingScheme versionNamingScheme)
Method Detail

getId

public long getId()
Specified by:
getId in interface BambooIdProvider

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

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

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.


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