Package com.atlassian.jira.upgrade
package com.atlassian.jira.upgrade
-
ClassDescriptionAbstract DowngradeTask - takes care of providing DB access via OfBizDelegator or DbConnectionManager.Simple implementation of
BuildVersionRegistry.BuildVersion
Resolves build numbers to versions of JIRA.Simple result object for representing the build number and version together.Checks the consistency of JIRA.Upgrade service for data import process.Default implementation which looks up the known versions from the file build-versions.properties.Allows to run every upgrade task (this needs to be fixed as it should only be allowed to run upgrade task up to current build number) and returnsBuildUtilsInfo.getApplicationBuildNumber()
as a target database number.Upgrade service that executes upgrades depending on which upgrades are pending.Upgrade service that schedules execution of upgrade tasks based on JIRA configuration.Indicates an error that occured while trying to downgrade JIRA such that the downgrade cannot complete successfully.Fires a reindex if required by a downgrade task that ran previouslyImplement this to create a Downgrade Task.Parses the downgrades.xml file.Used to drop old indexes as ofBiz don't drop it automatically.Upgrade service for the first data import.This provides theUpgradeTaskFactory
for running upgrades on the host application.Upgrade service that triggers Lucene indexing after upgrading process is finished.Old upgrade tasks will extend this.This is the same basic structure asJiraPluginSettings
and was copied in the case that JiraPluginSettings was ever re-written we want this to work in a legacy way.Event subclass that intercepts theEvent.setProgress(int)
in order to provide some status to the log file (using log4j).Wraps upgrade operations with logging.Indicates that the downgrade cannot proceed because at least one required Downgrade task is missing.Starts the JIRA plugins system with ALL available pluginsIssues a JiraStartedEvent to launch the Jira Plugin upgrade taskChecks if installed plugin is eligible for upgrading.Handles plugin upgrades and makes sure no upgrades happen simultaneously.Downgrade Tasks can use this to request a reindex after the downgrade is complete.Upgrade service used in setup process.In Jira 8.2.0 we introduced a bug by not respecting the contract between plugins and jira core on thePluginEnabledEvent
.Used to determine if upgrade task should be run and what target version number should be stored in database.Indicates an error during upgrade process.Handles reindex operations for JIRA upgrades.Tests if an upgrade is necessary, and performs it.Provides parameters required to perform JIRA upgrade.Component used for providing JIRA upgrade tasks.Result of the upgrade processUsed for scheduling the execution of delayed upgrade tasks.Service for managing Upgrades.Track status of a task this session, if isTaskDone(String) returns true you don't need to do it again.DAO used to store the current build version of the host and the plugins.A record of JIRA being upgraded from one version to another.This manages storing and retrieving information from theQUpgradeVersionHistory
table.Provides read-only access to the upgrade history of the current JIRA instance.