public class UpgradeManagerImpl extends AbstractUpgradeManager
applicationConfig, buildNumberComparator, fileName, newBuildNumber, oldBuildNumber, textProvider, upgradeTasks, upgradeUtilityBean, xPathExpression
Modifier | Constructor and Description |
---|---|
|
UpgradeManagerImpl(com.atlassian.config.ApplicationConfiguration applicationConfig,
BandanaItemDao bandanaItemDao,
IndexerManager indexerManager,
BambooTransactionHibernateTemplate transactionTemplate,
String fileName) |
protected |
UpgradeManagerImpl(com.atlassian.config.ApplicationConfiguration applicationConfig,
BandanaItemDao bandanaItemDao,
IndexerManager indexerManager,
BambooTransactionHibernateTemplate transactionTemplate,
String newBuildNumber,
String fileName) |
Modifier and Type | Method and Description |
---|---|
protected void |
classifyUpgradeTask(String bambooBuildNumber,
UpgradeTask task) |
List<String> |
doUpgrade(boolean partOfSetup)
Method to fire off the upgrade process
|
String |
getBuildNumber()
This gets the current build number
|
boolean |
needUpgrade()
Determines whether we need to run the upgrade or not.
|
protected void |
populateRelevantUpgrades(String buildNumberLo,
String buildNumberHi) |
createTasks, createUpgradeTask, forEachTask, getDescription, getOldBuildNumber, getUpgradeDocument, getUpgradeTasks, runUpgradeTask, setTextProvider, setUpgradeUtilityBean, shouldRunTask
public UpgradeManagerImpl(@NotNull com.atlassian.config.ApplicationConfiguration applicationConfig, @NotNull BandanaItemDao bandanaItemDao, @NotNull IndexerManager indexerManager, @NotNull BambooTransactionHibernateTemplate transactionTemplate, @NotNull String fileName)
protected UpgradeManagerImpl(@NotNull com.atlassian.config.ApplicationConfiguration applicationConfig, @NotNull BandanaItemDao bandanaItemDao, @NotNull IndexerManager indexerManager, @NotNull BambooTransactionHibernateTemplate transactionTemplate, @NotNull String newBuildNumber, @NotNull String fileName)
public boolean needUpgrade()
UpgradeManager
needUpgrade
in interface UpgradeManager
needUpgrade
in class AbstractUpgradeManager
boolean
whether the upgrade is needed@NotNull public String getBuildNumber()
UpgradeManager
@NotNull public List<String> doUpgrade(boolean partOfSetup) throws Exception
UpgradeManager
partOfSetup
- - whether or not the upgrade is being run as part of the setupException
protected void populateRelevantUpgrades(@NotNull String buildNumberLo, @NotNull String buildNumberHi) throws UpgradeException
populateRelevantUpgrades
in class AbstractUpgradeManager
UpgradeException
protected void classifyUpgradeTask(@NotNull String bambooBuildNumber, @NotNull UpgradeTask task) throws UpgradeException
classifyUpgradeTask
in class AbstractUpgradeManager
UpgradeException
Copyright © 2020 Atlassian Software Systems Pty Ltd. All rights reserved.