public class UpgradeManagerImpl extends AbstractUpgradeManager
applicationConfig, bambooSharedProperties, buildNumberComparator, fileName, newBuildNumber, oldBuildNumber, textProvider, upgradeTasks, upgradeUtilityBean, xPathExpression
Modifier | Constructor and Description |
---|---|
|
UpgradeManagerImpl(@NotNull com.atlassian.config.ApplicationConfiguration applicationConfig,
@NotNull BandanaItemDao bandanaItemDao,
@NotNull BambooTransactionHibernateTemplate transactionTemplate,
BootstrapManager bootstrapManager,
@NotNull String fileName) |
protected |
UpgradeManagerImpl(@NotNull com.atlassian.config.ApplicationConfiguration applicationConfig,
@NotNull BandanaItemDao bandanaItemDao,
@NotNull BambooTransactionHibernateTemplate transactionTemplate,
BootstrapManager bootstrapManager,
@NotNull String newBuildNumber,
@NotNull String fileName,
@NotNull Supplier<BambooSharedProperties> bambooSharedPropertiesSupplier) |
Modifier and Type | Method and Description |
---|---|
protected void |
classifyUpgradeTask(@NotNull String bambooBuildNumber,
@NotNull UpgradeTask task) |
@NotNull List<String> |
doUpgrade(boolean partOfSetup)
Method to fire off the upgrade process
|
boolean |
needUpgrade()
Determines whether we need to run the upgrade or not.
|
protected void |
populateRelevantUpgrades(@NotNull String buildNumberLo,
@NotNull String buildNumberHi) |
createTasks, createUpgradeTask, forEachTask, getBuildNumber, getDescription, getOldBuildNumber, getUpgradeDocument, getUpgradeTasks, runUpgradeTask, setTextProvider, setUpgradeUtilityBean, shouldRunTask
public UpgradeManagerImpl(@NotNull @NotNull com.atlassian.config.ApplicationConfiguration applicationConfig, @NotNull @NotNull BandanaItemDao bandanaItemDao, @NotNull @NotNull BambooTransactionHibernateTemplate transactionTemplate, BootstrapManager bootstrapManager, @NotNull @NotNull String fileName)
protected UpgradeManagerImpl(@NotNull @NotNull com.atlassian.config.ApplicationConfiguration applicationConfig, @NotNull @NotNull BandanaItemDao bandanaItemDao, @NotNull @NotNull BambooTransactionHibernateTemplate transactionTemplate, BootstrapManager bootstrapManager, @NotNull @NotNull String newBuildNumber, @NotNull @NotNull String fileName, @NotNull @NotNull Supplier<BambooSharedProperties> bambooSharedPropertiesSupplier)
public boolean needUpgrade()
UpgradeManager
needUpgrade
in interface UpgradeManager
needUpgrade
in class AbstractUpgradeManager
boolean
whether the upgrade is needed@NotNull public @NotNull 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 @NotNull String buildNumberLo, @NotNull @NotNull String buildNumberHi) throws UpgradeException
populateRelevantUpgrades
in class AbstractUpgradeManager
UpgradeException
protected void classifyUpgradeTask(@NotNull @NotNull String bambooBuildNumber, @NotNull @NotNull UpgradeTask task) throws UpgradeException
classifyUpgradeTask
in class AbstractUpgradeManager
UpgradeException
Copyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.
View cookie preferences