Package com.atlassian.jira.upgrade
Interface DowngradeTask
- All Known Implementing Classes:
AbstractDowngradeTask,DowngradeTask_Build10020000,DowngradeTask_Build70024,DowngradeTask_Build70027,DowngradeTask_Build810001,DowngradeTask_Build9150000
public interface DowngradeTask
Implement this to create a Downgrade Task.
A downgrade task is the reversal of an Upgrade Task. Not all upgrade tasks require an explicit reverse operation -
indeed most of them are a no-op to downgrade.
- Since:
- v6.4.6
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoidPerform the downgrade.intProvides access to the DB for this Downgrade Task.Provides access to the DB for this Downgrade Task.A short (<50 chars) description of the downgrade taskUse this to declare if the downgrade task will require reindexing JIRA.voidsetDbConnectionManager(DbConnectionManager dbConnectionManager) This is how the Downgrade task framework injects the DbConnectionManager.voidsetOfBizDelegator(OfBizDelegator ofBizDelegator) This is how the Downgrade task framework injects the OfBizDelegator.
-
Method Details
-
getBuildNumber
int getBuildNumber()- Returns:
- The build number that this downgrade task downgrades from.
-
getShortDescription
A short (<50 chars) description of the downgrade task -
downgrade
Perform the downgrade.- Throws:
DowngradeException
-
reindexRequired
Use this to declare if the downgrade task will require reindexing JIRA.- Returns:
- reindexing requirement of this downgrade task.
-
getDbConnectionManager
Provides access to the DB for this Downgrade Task.- Returns:
- the DbConnectionManager
-
getOfBizDelegator
Provides access to the DB for this Downgrade Task.- Returns:
- the OfBizDelegator
-
setDbConnectionManager
This is how the Downgrade task framework injects the DbConnectionManager.This method is implemented by AbstractDowngradeTask.
-
setOfBizDelegator
This is how the Downgrade task framework injects the OfBizDelegator.This method is implemented by AbstractDowngradeTask.
-