public interface UpgradeTask
Please make sure when implementing an upgrade task that you write it in such a way as it can be run again and not corrupt the Crowd data on a second, third run.
Modifier and Type | Method and Description |
---|---|
void |
doUpgrade()
Perform the upgrade.
|
int |
getBuildNumber() |
default Collection<String> |
getErrors()
Deprecated.
Just throw from @
doUpgrade() instead. Upgrade tasks are singleton beans, so most hold the
error list across multiple imports. |
String |
getShortDescription()
A short (less than 50 chars) description of the upgrade action
|
int getBuildNumber()
String getShortDescription()
void doUpgrade() throws Exception
Exception
- is thrown if any errors occur during the upgrade process.@Deprecated default Collection<String> getErrors()
doUpgrade()
instead. Upgrade tasks are singleton beans, so most hold the
error list across multiple imports.Copyright © 2019 Atlassian. All rights reserved.