com.atlassian.bamboo.upgrade.tasks.v5_7
Class UpgradeTask5713PrepareExpiryConfigurationForNewDeploymentExpiry

java.lang.Object
  extended by com.atlassian.bamboo.upgrade.AbstractUpgradeTask
      extended by com.atlassian.bamboo.upgrade.AbstractBootstrapUpgradeTask
          extended by com.atlassian.bamboo.upgrade.tasks.v5_7.UpgradeTask5713PrepareExpiryConfigurationForNewDeploymentExpiry
All Implemented Interfaces:
BootstrapUpgradeTask, UpgradeTask

public class UpgradeTask5713PrepareExpiryConfigurationForNewDeploymentExpiry
extends AbstractBootstrapUpgradeTask


Field Summary
static String COUNT_DEPLOYMENT_PROJECTS_QUERY
           
static String DEPLOYMENT_PROJECTS_TABLE
           
static String SELECT_BUILD_DEFINITION_XML_QUERY
           
protected  AdministrationConfigurationUpgrader upgrader
           
 
Fields inherited from class com.atlassian.bamboo.upgrade.AbstractBootstrapUpgradeTask
applicationConfig, bootstrapManager, hibernateConfig
 
Fields inherited from class com.atlassian.bamboo.upgrade.AbstractUpgradeTask
errors
 
Constructor Summary
UpgradeTask5713PrepareExpiryConfigurationForNewDeploymentExpiry()
           
 
Method Summary
 void doUpgrade()
          Perform the upgrade.
protected  boolean hasDeploymentProjects()
           
protected  boolean hasPerPlanExpiryOverrides()
           
protected  boolean isBuildExpiryEnabled()
           
 void setDbmsBean(DbmsBean dbmsBean)
           
protected  void setDeploymentExpiryEnabledSetting()
           
 void setFeatureManager(FeatureManager featureManager)
           
protected  void updateDeploymentExpiryConfiguration()
           
 
Methods inherited from class com.atlassian.bamboo.upgrade.AbstractBootstrapUpgradeTask
getApplicationBuildNumber, getDatabaseConnection, getDialect, setApplicationConfig, setBootstrapManager, setHibernateConfig, withDatabaseConnection
 
Methods inherited from class com.atlassian.bamboo.upgrade.AbstractUpgradeTask
getBuildNumber, getErrors, getShortDescription
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.atlassian.bamboo.upgrade.UpgradeTask
getBuildNumber, getErrors, getShortDescription
 

Field Detail

DEPLOYMENT_PROJECTS_TABLE

public static final String DEPLOYMENT_PROJECTS_TABLE
See Also:
Constant Field Values

COUNT_DEPLOYMENT_PROJECTS_QUERY

public static final String COUNT_DEPLOYMENT_PROJECTS_QUERY
See Also:
Constant Field Values

SELECT_BUILD_DEFINITION_XML_QUERY

public static final String SELECT_BUILD_DEFINITION_XML_QUERY
See Also:
Constant Field Values

upgrader

protected AdministrationConfigurationUpgrader upgrader
Constructor Detail

UpgradeTask5713PrepareExpiryConfigurationForNewDeploymentExpiry

public UpgradeTask5713PrepareExpiryConfigurationForNewDeploymentExpiry()
Method Detail

doUpgrade

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

Throws:
Exception - to signalize error during upgrade process

setDeploymentExpiryEnabledSetting

protected void setDeploymentExpiryEnabledSetting()
                                          throws Exception
Throws:
Exception

isBuildExpiryEnabled

protected boolean isBuildExpiryEnabled()
                                throws Exception
Throws:
Exception

hasDeploymentProjects

protected boolean hasDeploymentProjects()
                                 throws Exception
Throws:
Exception

hasPerPlanExpiryOverrides

protected boolean hasPerPlanExpiryOverrides()
                                     throws Exception
Throws:
Exception

updateDeploymentExpiryConfiguration

protected void updateDeploymentExpiryConfiguration()

setDbmsBean

public void setDbmsBean(DbmsBean dbmsBean)

setFeatureManager

public void setFeatureManager(FeatureManager featureManager)


Copyright © 2015 Atlassian Software Systems Pty Ltd. All rights reserved.