public class DowngradeWorker extends Object
Downgrade tasks are defined in downgrades.xml and each Upgrade Task must declare whether its needs a downgrade, or is a no-op.
UpgradeTask.isDowngradeTaskRequired()| Modifier and Type | Class and Description |
|---|---|
static class |
DowngradeWorker.Mode
Downgrade mode.
|
| Constructor and Description |
|---|
DowngradeWorker(BuildUtilsInfo buildUtilsInfo,
DbConnectionManager dbConnectionManager,
OfBizDelegator ofBizDelegator,
ApplicationProperties applicationProperties) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canDowngrade() |
void |
downgrade(DowngradeWorker.Mode downgradeMode)
Called to perform special downgrade tasks.
|
void |
writeNewBuildNumbers() |
public DowngradeWorker(BuildUtilsInfo buildUtilsInfo, DbConnectionManager dbConnectionManager, OfBizDelegator ofBizDelegator, ApplicationProperties applicationProperties)
public void downgrade(DowngradeWorker.Mode downgradeMode) throws DowngradeException
This method is only invoked when we have identified that you are importing data from a newer version of JIRA, presumably because an OnDemand customer has exported JIRA data to import into their on premise instance.
DowngradeExceptionpublic void writeNewBuildNumbers()
public boolean canDowngrade()
throws DowngradeException
DowngradeExceptionCopyright © 2002-2016 Atlassian. All Rights Reserved.