com.atlassian.jira.upgrade
Class AbstractUpgradeTask

java.lang.Object
  extended by com.atlassian.jira.upgrade.AbstractUpgradeTask
All Implemented Interfaces:
UpgradeTask
Direct Known Subclasses:
AbstractFieldScreenUpgradeTask, AbstractNotificationSchemeUpgradeTask, AbstractReindexUpgradeTask, AbstractSearchRequestUpgradeTask, UpgradeTask_Build10, UpgradeTask_Build100, UpgradeTask_Build101, UpgradeTask_Build102, UpgradeTask_Build103, UpgradeTask_Build104, UpgradeTask_Build105, UpgradeTask_Build106, UpgradeTask_Build11, UpgradeTask_Build125, UpgradeTask_Build130, UpgradeTask_Build132, UpgradeTask_Build133, UpgradeTask_Build150, UpgradeTask_Build151, UpgradeTask_Build152, UpgradeTask_Build155, UpgradeTask_Build157, UpgradeTask_Build175, UpgradeTask_Build176, UpgradeTask_Build178, UpgradeTask_Build180, UpgradeTask_Build183, UpgradeTask_Build186, UpgradeTask_Build187, UpgradeTask_Build190, UpgradeTask_Build205, UpgradeTask_Build22, UpgradeTask_Build231, UpgradeTask_Build232, UpgradeTask_Build24, UpgradeTask_Build25, UpgradeTask_Build255, UpgradeTask_Build257, UpgradeTask_Build26, UpgradeTask_Build27, UpgradeTask_Build28, UpgradeTask_Build296, UpgradeTask_Build317, UpgradeTask_Build319, UpgradeTask_Build32, UpgradeTask_Build321, UpgradeTask_Build322, UpgradeTask_Build325, UpgradeTask_Build33, UpgradeTask_Build34, UpgradeTask_Build35, UpgradeTask_Build47, UpgradeTask_Build47, UpgradeTask_Build48, UpgradeTask_Build50, UpgradeTask_Build51, UpgradeTask_Build57, UpgradeTask_Build60, UpgradeTask_Build61, UpgradeTask_Build66, UpgradeTask_Build68, UpgradeTask_Build69, UpgradeTask_Build82, UpgradeTask_Build93, UpgradeTask_Build98, UpgradeTask1_2, UpgradeTask1_2

public abstract class AbstractUpgradeTask
extends Object
implements UpgradeTask


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.atlassian.jira.upgrade.UpgradeTask
UpgradeTask.Status
 
Constructor Summary
AbstractUpgradeTask()
           
 
Method Summary
protected  void addError(String error)
           
 void addErrors(Collection errors)
           
 void addErrors(String prefix, Collection errors)
          Useful for adding a bunch of errors (like from a command) with a prefix
abstract  void doUpgrade()
          Perform the upgrade.
protected  ApplicationProperties getApplicationProperties()
           
abstract  String getBuildNumber()
           
protected  org.ofbiz.core.entity.GenericDelegator getDelegator()
           
 Collection getErrors()
          Return any errors that occur.
protected  I18nBean getI18nBean()
           
 String getShortDescription()
          A short (<50 chars) description of the upgrade action
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractUpgradeTask

public AbstractUpgradeTask()
Method Detail

getBuildNumber

public abstract String getBuildNumber()
Specified by:
getBuildNumber in interface UpgradeTask
Returns:
The build number that this upgrade is applicable to

doUpgrade

public abstract void doUpgrade()
                        throws Exception
Description copied from interface: UpgradeTask
Perform the upgrade.

Specified by:
doUpgrade in interface UpgradeTask
Throws:
Exception

getShortDescription

public String getShortDescription()
Description copied from interface: UpgradeTask
A short (<50 chars) description of the upgrade action

Specified by:
getShortDescription in interface UpgradeTask

getDelegator

protected org.ofbiz.core.entity.GenericDelegator getDelegator()

getApplicationProperties

protected ApplicationProperties getApplicationProperties()

addError

protected void addError(String error)

addErrors

public void addErrors(String prefix,
                      Collection errors)
Useful for adding a bunch of errors (like from a command) with a prefix


addErrors

public void addErrors(Collection errors)

getErrors

public Collection getErrors()
Description copied from interface: UpgradeTask
Return any errors that occur. Each entry is a string.

Specified by:
getErrors in interface UpgradeTask

getI18nBean

protected I18nBean getI18nBean()


Copyright © 2002-2008 Atlassian. All Rights Reserved.