com.atlassian.confluence.upgrade
Class AbstractUpgradeTask

java.lang.Object
  extended by com.atlassian.confluence.upgrade.AbstractUpgradeTask
All Implemented Interfaces:
UpgradeTask
Direct Known Subclasses:
AtlassianUpgradeFollowersUpgradeTask, FollowFavouriteUpgradeTask

public abstract class AbstractUpgradeTask
extends Object
implements UpgradeTask


Field Summary
 
Fields inherited from interface com.atlassian.confluence.upgrade.UpgradeTask
log
 
Constructor Summary
AbstractUpgradeTask()
           
 
Method Summary
protected  void addError(UpgradeError error)
           
 void addErrors(Collection<String> errors)
           
 void addErrors(String prefix, Collection<String> errors)
          Useful for adding a bunch of errors (like from a command) with a prefix
 String getBuildNumber()
           
 Collection<UpgradeError> getErrors()
          Return any errors that occur.
 String getShortDescription()
          A short (<50 chars) description of the upgrade action
 void setBuildNumber(String buildNumber)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.atlassian.confluence.upgrade.UpgradeTask
doUpgrade
 

Constructor Detail

AbstractUpgradeTask

public AbstractUpgradeTask()
Method Detail

getShortDescription

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

Specified by:
getShortDescription in interface UpgradeTask

addError

protected void addError(UpgradeError error)

addErrors

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


addErrors

public void addErrors(Collection<String> errors)

getErrors

public Collection<UpgradeError> getErrors()
Description copied from interface: UpgradeTask
Return any errors that occur. Each entry is an UpgradeError.

Specified by:
getErrors in interface UpgradeTask

setBuildNumber

public void setBuildNumber(String buildNumber)

getBuildNumber

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


Copyright © 2003-2011 Atlassian. All Rights Reserved.