|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.jira.upgrade.UpgradeManagerImpl
public class UpgradeManagerImpl
| Constructor Summary | |
|---|---|
UpgradeManagerImpl(JiraLicenseService jiraLicenseService,
BuildUtilsInfo buildUtilsInfo,
I18nHelper.BeanFactory i18HelperFactory,
ApplicationProperties applicationProperties,
BuildVersionRegistry buildVersionRegistry,
com.atlassian.event.api.EventPublisher eventPublisher)
This constructor adds all the upgrade tasks and is used by PICO |
|
| Method Summary | |
|---|---|
Collection<String> |
doSetupUpgrade()
Performs any upgrades that may be needed as a result of the Setup procedure of JIRA Get the set of setupUpgradeNumbers which are to be performed for this setup. |
Collection<String> |
doUpgradeIfNeededAndAllowed(String backupPath)
Performs the upgrade if one is required and the license is not too old to proceed with the upgrade. |
String |
getExportFilePath()
|
List<UpgradeHistoryItem> |
getUpgradeHistory()
|
void |
onClearCache(ClearCacheEvent event)
|
void |
start()
This method wil be called after the plugin system is fully initialised and all components added to the dependency injection framework. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public UpgradeManagerImpl(JiraLicenseService jiraLicenseService,
BuildUtilsInfo buildUtilsInfo,
I18nHelper.BeanFactory i18HelperFactory,
ApplicationProperties applicationProperties,
BuildVersionRegistry buildVersionRegistry,
com.atlassian.event.api.EventPublisher eventPublisher)
| Method Detail |
|---|
public void start()
throws Exception
Startable
start in interface StartableException - Allows implementations to throw an Exception.@EventListener public void onClearCache(ClearCacheEvent event)
public Collection<String> doUpgradeIfNeededAndAllowed(String backupPath)
throws IllegalXMLCharactersException
doUpgradeIfNeededAndAllowed in interface UpgradeManagerbackupPath - - a path to the default location of the export
IllegalXMLCharactersExceptionpublic Collection<String> doSetupUpgrade()
UpgradeTask with this number then do the upgrade
If errors are found, it will cancel the upgrade, and return the list of errors.
For each upgrade that happens successfully, it will increment the build number in the database, so that if one
fails, you do not have to repeat all the upgrades that have already run.
If there are no errors from the upgrade, the build number in the database is incremented to the current build
number. This is because there may be no upgrades for a particular version & needUpgrade() checks build no in
database.
doSetupUpgrade in interface UpgradeManagerpublic String getExportFilePath()
getExportFilePath in interface UpgradeManagerpublic List<UpgradeHistoryItem> getUpgradeHistory()
getUpgradeHistory in interface UpgradeManager
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||