Class UpgradeTask360
java.lang.Object
com.atlassian.crowd.upgrade.tasks.UpgradeTask360
- All Implemented Interfaces:
UpgradeTask
Removes all existing Tokens.
Prior to 2.0, this upgrade task added the "secret number" field to Tokens.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidPerform the upgrade.intAny errors that occur during the upgrade process will be added to this Collection as Strings.A short (less than 50 chars) description of the upgrade actionvoidsetTokenManager(TokenManager tokenManager)
-
Constructor Details
-
UpgradeTask360
public UpgradeTask360()
-
-
Method Details
-
getBuildNumber
public int getBuildNumber()- Specified by:
getBuildNumberin interfaceUpgradeTask- Returns:
- The build number that this upgrade is applicable to.
-
getShortDescription
Description copied from interface:UpgradeTaskA short (less than 50 chars) description of the upgrade action- Specified by:
getShortDescriptionin interfaceUpgradeTask- Returns:
- description of upgrade task.
-
doUpgrade
Description copied from interface:UpgradeTaskPerform the upgrade.- Specified by:
doUpgradein interfaceUpgradeTask- Throws:
Exception- is thrown if any errors occur during the upgrade process.
-
getErrors
Description copied from interface:UpgradeTaskAny errors that occur during the upgrade process will be added to this Collection as Strings.- Specified by:
getErrorsin interfaceUpgradeTask- Returns:
- a Collection<String> of errors. This may return an empty Collection.
-
setTokenManager
-