Class XmlFileUpgradeProvider

java.lang.Object
com.atlassian.jira.upgrade.XmlFileUpgradeProvider
All Implemented Interfaces:
UpgradeProvider

public class XmlFileUpgradeProvider extends Object implements UpgradeProvider
  • Constructor Details

    • XmlFileUpgradeProvider

      public XmlFileUpgradeProvider()
  • Method Details

    • getUpgradeTasks

      public <T> Collection<T> getUpgradeTasks()
      Description copied from interface: UpgradeProvider
      Constructs JIRA upgrade tasks.
      Specified by:
      getUpgradeTasks in interface UpgradeProvider
      Type Parameters:
      T - is the type of the Upgrade Task as we have different types for these: UpgradeTask and com.atlassian.upgrade.api.UpgradeTask.
      Returns:
      the collection of the upgrade task.
    • getUpgradeTasksBoundByBuild

      public <T> Collection<T> getUpgradeTasksBoundByBuild(long buildNumberUpperBound)
      Description copied from interface: UpgradeProvider
      Constructs all JIRA upgrade tasks for build numbers less than or equal to some limit. This allows us to only run upgrade tasks up to a certain point in the database's history.
      Specified by:
      getUpgradeTasksBoundByBuild in interface UpgradeProvider
      Type Parameters:
      T - is the type of the Upgrade Task as we have different types for these: UpgradeTask and com.atlassian.upgrade.api.UpgradeTask.
      Returns:
      the collection of the upgrade task.