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_Build231, UpgradeTask_Build232, UpgradeTask_Build255, UpgradeTask_Build257, UpgradeTask_Build27, UpgradeTask_Build296, UpgradeTask_Build317, UpgradeTask_Build319, UpgradeTask_Build321, UpgradeTask_Build322, UpgradeTask_Build325, UpgradeTask_Build35, UpgradeTask_Build401, UpgradeTask_Build402, UpgradeTask_Build403, UpgradeTask_Build412, UpgradeTask_Build418, UpgradeTask_Build428, UpgradeTask_Build436, UpgradeTask_Build437, UpgradeTask_Build438, UpgradeTask_Build446, UpgradeTask_Build47, UpgradeTask_Build48, UpgradeTask_Build509, UpgradeTask_Build51, UpgradeTask_Build520, UpgradeTask_Build551, UpgradeTask_Build552, UpgradeTask_Build554, UpgradeTask_Build571, UpgradeTask_Build572, UpgradeTask_Build60, UpgradeTask_Build82, UpgradeTask_Build93, UpgradeTask_Build98, UpgradeTask1_2, UpgradeTask1_2_1

public abstract class AbstractUpgradeTask
extends java.lang.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(java.lang.String error)
           
 void addErrors(java.util.Collection<java.lang.String> errors)
           
 void addErrors(java.lang.String prefix, java.util.Collection<java.lang.String> 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  java.lang.String getBuildNumber()
           
protected  org.ofbiz.core.entity.GenericDelegator getDelegator()
           
 java.util.Collection<java.lang.String> getErrors()
          Return any errors that occur.
protected  I18nHelper getI18nBean()
           
 java.lang.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 java.lang.String getBuildNumber()
Specified by:
getBuildNumber in interface UpgradeTask
Returns:
The build number that this upgrade is applicable to

doUpgrade

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

Specified by:
doUpgrade in interface UpgradeTask
Throws:
java.lang.Exception

getShortDescription

public java.lang.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(java.lang.String error)

addErrors

public void addErrors(java.lang.String prefix,
                      java.util.Collection<java.lang.String> errors)
Useful for adding a bunch of errors (like from a command) with a prefix


addErrors

public void addErrors(java.util.Collection<java.lang.String> errors)

getErrors

public java.util.Collection<java.lang.String> getErrors()
Description copied from interface: UpgradeTask
Return any errors that occur. Each entry is a string.

Specified by:
getErrors in interface UpgradeTask

getI18nBean

protected I18nHelper getI18nBean()


Copyright © 2002-2010 Atlassian. All Rights Reserved.