public interface

DowngradeTask

com.atlassian.jira.upgrade.DowngradeTask
Known Indirect Subclasses

Class Overview

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 downgrad.

Summary

Public Methods
void downgrade()
Perform the downgrade.
int getBuildNumber()
@Nonnull DbConnectionManager getDbConnectionManager()
Provides access to the DB for this Downgrade Task.
@Nonnull OfBizDelegator getOfBizDelegator()
Provides access to the DB for this Downgrade Task.
@Nonnull String getShortDescription()
A short (<50 chars) description of the downgrade task
@Nonnull ReindexRequirement reindexRequired()
Use this to declare if the downgrade task will require reindexing JIRA.
void setDbConnectionManager(DbConnectionManager dbConnectionManager)
This is how the Downgrade task framework injects the DbConnectionManager.
void setOfBizDelegator(OfBizDelegator ofBizDelegator)
This is how the Downgrade task framework injects the OfBizDelegator.

Public Methods

public void downgrade ()

Perform the downgrade.

public int getBuildNumber ()

Returns
  • The build number that this downgrade task downgrades from.

@Nonnull public DbConnectionManager getDbConnectionManager ()

Provides access to the DB for this Downgrade Task.

Returns
  • the DbConnectionManager

@Nonnull public OfBizDelegator getOfBizDelegator ()

Provides access to the DB for this Downgrade Task.

Returns
  • the OfBizDelegator

@Nonnull public String getShortDescription ()

A short (<50 chars) description of the downgrade task

@Nonnull public ReindexRequirement reindexRequired ()

Use this to declare if the downgrade task will require reindexing JIRA.

Returns
  • reindexing requirement of this downgrade task.

public void setDbConnectionManager (DbConnectionManager dbConnectionManager)

This is how the Downgrade task framework injects the DbConnectionManager.

This method is implemented by AbstractDowngradeTask.

public void setOfBizDelegator (OfBizDelegator ofBizDelegator)

This is how the Downgrade task framework injects the OfBizDelegator.

This method is implemented by AbstractDowngradeTask.