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 Details

    • getBuildNumber

      int getBuildNumber()
      Returns:
      The build number that this downgrade task downgrades from.
    • getShortDescription

      @Nonnull String getShortDescription()
      A short (<50 chars) description of the downgrade task
    • downgrade

      void downgrade() throws DowngradeException
      Perform the downgrade.
      Throws:
      DowngradeException
    • reindexRequired

      @Nonnull ReindexRequirement reindexRequired()
      Use this to declare if the downgrade task will require reindexing JIRA.
      Returns:
      reindexing requirement of this downgrade task.
    • getDbConnectionManager

      @Nonnull DbConnectionManager getDbConnectionManager()
      Provides access to the DB for this Downgrade Task.
      Returns:
      the DbConnectionManager
    • getOfBizDelegator

      @Nonnull OfBizDelegator getOfBizDelegator()
      Provides access to the DB for this Downgrade Task.
      Returns:
      the OfBizDelegator
    • setDbConnectionManager

      void setDbConnectionManager(@Nonnull DbConnectionManager dbConnectionManager)
      This is how the Downgrade task framework injects the DbConnectionManager.

      This method is implemented by AbstractDowngradeTask.

    • setOfBizDelegator

      void setOfBizDelegator(@Nonnull OfBizDelegator ofBizDelegator)
      This is how the Downgrade task framework injects the OfBizDelegator.

      This method is implemented by AbstractDowngradeTask.