com.atlassian.bamboo.upgrade.tasks.validation
Class BuildNumberApplicableForUpgrade

java.lang.Object
  extended by com.atlassian.bamboo.upgrade.AbstractUpgradeTask
      extended by com.atlassian.bamboo.upgrade.AbstractBootstrapUpgradeTask
          extended by com.atlassian.bamboo.upgrade.tasks.validation.BuildNumberApplicableForUpgrade
All Implemented Interfaces:
UpgradeTask

public class BuildNumberApplicableForUpgrade
extends AbstractBootstrapUpgradeTask

Validate if current Bamboo build number is applicable for upgrade.


Field Summary
 
Fields inherited from class com.atlassian.bamboo.upgrade.AbstractBootstrapUpgradeTask
applicationConfig, bootstrapManager, hibernateConfig
 
Fields inherited from class com.atlassian.bamboo.upgrade.AbstractUpgradeTask
errors
 
Constructor Summary
BuildNumberApplicableForUpgrade()
           
 
Method Summary
 void doUpgrade()
          Perform the upgrade.
 java.lang.String getBuildNumber()
           
 void setTextProvider(com.opensymphony.xwork.TextProvider textProvider)
           
 void setUpgradeUtilityBean(UpgradeUtilityBean upgradeUtilityBean)
           
 
Methods inherited from class com.atlassian.bamboo.upgrade.AbstractBootstrapUpgradeTask
getDatabaseConnection, getDialect, setApplicationConfig, setBootstrapManager, setHibernateConfig, withDatabaseConnection
 
Methods inherited from class com.atlassian.bamboo.upgrade.AbstractUpgradeTask
getErrors, getShortDescription
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BuildNumberApplicableForUpgrade

public BuildNumberApplicableForUpgrade()
Method Detail

doUpgrade

public void doUpgrade()
               throws java.lang.Exception
Description copied from interface: UpgradeTask
Perform the upgrade.

Throws:
java.lang.Exception - to signalize error during upgrade process

getBuildNumber

@NotNull
public java.lang.String getBuildNumber()
Specified by:
getBuildNumber in interface UpgradeTask
Overrides:
getBuildNumber in class AbstractUpgradeTask
Returns:
The build number that this upgrade is applicable to.

setTextProvider

public void setTextProvider(com.opensymphony.xwork.TextProvider textProvider)

setUpgradeUtilityBean

public void setUpgradeUtilityBean(UpgradeUtilityBean upgradeUtilityBean)


Copyright © 2012 Atlassian. All Rights Reserved.