com.atlassian.confluence.upgrade.upgradetask
Class JiraIssueMacroServerParamsUpgradeTask
java.lang.Object
com.atlassian.confluence.upgrade.AbstractUpgradeTask
com.atlassian.confluence.upgrade.AbstractDeferredRunUpgradeTask
com.atlassian.confluence.upgrade.upgradetask.JiraIssueMacroServerParamsUpgradeTask
- All Implemented Interfaces:
- BackupSupport, DatabaseUpgradeTask, DeferredUpgradeTask, UpgradeTask
public class JiraIssueMacroServerParamsUpgradeTask
- extends AbstractDeferredRunUpgradeTask
- implements DatabaseUpgradeTask
CONF-25329: This upgrade task adds additional JIRA Issue macro params that allow us to resolve a renamed application link.
- See Also:
for details.
This upgrade task can be re-run to fix existing macro usages that were previously broken, e.g.:
(1) Run upgrade task so that all macros added since the applink was renamed have the correct applink ID stored
(2) Rename the applink to its old name that the broken macros used
(3) Re-run the upgrade task so that the broken macros now have the correct applink ID and URL stored
(4) Rename the applink to desired name - all existing macro usages should now be resolved correctly via the 'serverId' param
Fields inherited from interface com.atlassian.confluence.upgrade.UpgradeTask |
log |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JiraIssueMacroServerParamsUpgradeTask
public JiraIssueMacroServerParamsUpgradeTask(JiraIssueMacroServerParamsMigrator migrator,
int applicationConfigBuildNumber)
getBuildNumber
public java.lang.String getBuildNumber()
- Specified by:
getBuildNumber
in interface UpgradeTask
- Overrides:
getBuildNumber
in class AbstractUpgradeTask
- Returns:
- The build number that this upgrade is applicable to
getConstraint
public BuildNumberUpgradeConstraint getConstraint()
- Specified by:
getConstraint
in interface UpgradeTask
- Overrides:
getConstraint
in class AbstractUpgradeTask
- Returns:
- the constraint that must be passed for this task to be run.
getShortDescription
public java.lang.String getShortDescription()
- Description copied from interface:
UpgradeTask
- A short (<50 chars) description of the upgrade action
- Specified by:
getShortDescription
in interface UpgradeTask
- Overrides:
getShortDescription
in class AbstractUpgradeTask
doDeferredUpgrade
public void doDeferredUpgrade()
throws java.lang.Exception
- Description copied from interface:
DeferredUpgradeTask
- Run the upgrade that was deferred by an earlier call to doUpgrade.
- Specified by:
doDeferredUpgrade
in interface DeferredUpgradeTask
- Throws:
java.lang.Exception
breaksBackwardCompatibility
public boolean breaksBackwardCompatibility()
- This upgrade task enforces a migration which should have happened when the applink was renumbered.
- Specified by:
breaksBackwardCompatibility
in interface BackupSupport
runOnSpaceImport
public boolean runOnSpaceImport()
- This upgrade task operates on Space data.
- Specified by:
runOnSpaceImport
in interface BackupSupport
Copyright © 2003-2014 Atlassian. All Rights Reserved.