com.atlassian.confluence.upgrade
Class AbstractDeferredRunUpgradeTask

java.lang.Object
  extended by com.atlassian.confluence.upgrade.AbstractUpgradeTask
      extended by com.atlassian.confluence.upgrade.AbstractDeferredRunUpgradeTask
All Implemented Interfaces:
DeferredUpgradeTask, UpgradeTask
Direct Known Subclasses:
ConditionallyEnableMailArchivePluginUpgradeTask, DefaultSpaceContentToPageTemplateUpgradeTask, DisableConfluenceInvitePluginUpgradeTask, PageTemplateWikiToXhtmlMigrationUpgradeTask, RebuildIndexUpgradeTask, ReportUserMacrosWithWikiTemplateUpgradeTask, WelcomeMessageUpgradeTask, WikiToXhtmlMigrationUpgradeTask

public abstract class AbstractDeferredRunUpgradeTask
extends AbstractUpgradeTask
implements DeferredUpgradeTask


Field Summary
 
Fields inherited from interface com.atlassian.confluence.upgrade.UpgradeTask
log
 
Constructor Summary
AbstractDeferredRunUpgradeTask()
           
 
Method Summary
 void doUpgrade()
          Perform the upgrade.
 boolean isUpgradeRequired()
           
 void setUpgradeRequired(boolean required)
           
 
Methods inherited from class com.atlassian.confluence.upgrade.AbstractUpgradeTask
addAllErrors, addError, addError, getBuildNumber, getConstraint, getErrors, getShortDescription, setBuildNumber, validate
 
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.DeferredUpgradeTask
doDeferredUpgrade
 
Methods inherited from interface com.atlassian.confluence.upgrade.UpgradeTask
getBuildNumber, getConstraint, getErrors, getShortDescription, validate
 

Constructor Detail

AbstractDeferredRunUpgradeTask

public AbstractDeferredRunUpgradeTask()
Method Detail

isUpgradeRequired

public boolean isUpgradeRequired()
Specified by:
isUpgradeRequired in interface DeferredUpgradeTask
Returns:
true if this task requires to be run

setUpgradeRequired

public void setUpgradeRequired(boolean required)
Specified by:
setUpgradeRequired in interface DeferredUpgradeTask
Parameters:
required - if true then this upgrade task needs to be run.

doUpgrade

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

Specified by:
doUpgrade in interface UpgradeTask
Throws:
Exception


Copyright © 2003-2013 Atlassian. All Rights Reserved.