Package com.atlassian.confluence.upgrade
Class AbstractDeferredRunUpgradeTask
- java.lang.Object
-
- com.atlassian.confluence.upgrade.AbstractUpgradeTask
-
- com.atlassian.confluence.upgrade.AbstractDeferredRunUpgradeTask
-
- All Implemented Interfaces:
BackupSupport
,DeferredUpgradeTask
,UpgradeTask
,UpgradeTaskInfo
,org.springframework.beans.factory.Aware
,org.springframework.beans.factory.BeanNameAware
- Direct Known Subclasses:
AbstractIndexContentUpgradeTask
,AbstractPageTemplateMigrationUpgradeTask
,BandanaTokenCleanupUpgradeTask
,BandanaXStreamValueUpgradeTask
,ServerADGSUpgradeTask
,SplitJournalUpgradeTask
,WikiToXhtmlMigrationUpgradeTask
public abstract class AbstractDeferredRunUpgradeTask extends AbstractUpgradeTask implements DeferredUpgradeTask
-
-
Field Summary
-
Fields inherited from interface com.atlassian.confluence.upgrade.UpgradeTask
log
-
-
Constructor Summary
Constructors Constructor Description AbstractDeferredRunUpgradeTask()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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, getName, getShortDescription, isDatabaseUpgrade, setBeanName, 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.BackupSupport
breaksBackwardCompatibility, runOnSpaceImport
-
Methods inherited from interface com.atlassian.confluence.upgrade.DeferredUpgradeTask
doDeferredUpgrade
-
Methods inherited from interface com.atlassian.confluence.upgrade.UpgradeTask
getConstraint, getErrors, validate
-
Methods inherited from interface com.atlassian.confluence.upgrade.UpgradeTaskInfo
getBuildNumber, getName, getShortDescription, isDatabaseUpgrade
-
-
-
-
Method Detail
-
isUpgradeRequired
public boolean isUpgradeRequired()
- Specified by:
isUpgradeRequired
in interfaceDeferredUpgradeTask
- Returns:
- true if this task requires to be run
-
setUpgradeRequired
public void setUpgradeRequired(boolean required)
- Specified by:
setUpgradeRequired
in interfaceDeferredUpgradeTask
- 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 interfaceUpgradeTask
- Throws:
Exception
-
-