com.atlassian.confluence.upgrade.upgradetask
Class DefaultSpaceContentToPageTemplateUpgradeTask

java.lang.Object
  extended by com.atlassian.confluence.upgrade.AbstractUpgradeTask
      extended by com.atlassian.confluence.upgrade.AbstractDeferredRunUpgradeTask
          extended by com.atlassian.confluence.upgrade.upgradetask.DefaultSpaceContentToPageTemplateUpgradeTask
All Implemented Interfaces:
BackupSupport, DatabaseUpgradeTask, DeferredUpgradeTask, UpgradeTask

public class DefaultSpaceContentToPageTemplateUpgradeTask
extends AbstractDeferredRunUpgradeTask
implements DatabaseUpgradeTask


Field Summary
 
Fields inherited from interface com.atlassian.confluence.upgrade.UpgradeTask
log
 
Constructor Summary
DefaultSpaceContentToPageTemplateUpgradeTask(SettingsManager settingsManager, XhtmlContent xhtmlContent, SystemTemplateManager systemTemplateManager, org.springframework.transaction.PlatformTransactionManager transactionManager)
           
 
Method Summary
 boolean breaksBackwardCompatibility()
          After downgrading from above 5.0 the default space content will be lost, but that should be acceptable.
 void doDeferredUpgrade()
          Run the upgrade that was deferred by an earlier call to doUpgrade.
 java.lang.String getBuildNumber()
           
 boolean runOnSpaceImport()
          This task does not apply to spaces, only to global configuration.
 
Methods inherited from class com.atlassian.confluence.upgrade.AbstractDeferredRunUpgradeTask
doUpgrade, isUpgradeRequired, setUpgradeRequired
 
Methods inherited from class com.atlassian.confluence.upgrade.AbstractUpgradeTask
addAllErrors, addError, addError, 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.UpgradeTask
doUpgrade, getConstraint, getErrors, getShortDescription, validate
 

Constructor Detail

DefaultSpaceContentToPageTemplateUpgradeTask

public DefaultSpaceContentToPageTemplateUpgradeTask(SettingsManager settingsManager,
                                                    XhtmlContent xhtmlContent,
                                                    SystemTemplateManager systemTemplateManager,
                                                    org.springframework.transaction.PlatformTransactionManager transactionManager)
Method Detail

getBuildNumber

public java.lang.String getBuildNumber()
Specified by:
getBuildNumber in interface UpgradeTask
Overrides:
getBuildNumber in class AbstractUpgradeTask
Returns:
The build number that this upgrade is applicable to

doDeferredUpgrade

public void doDeferredUpgrade()
                       throws java.lang.Exception
Description copied from interface: DeferredUpgradeTask
Run the upgrade that was deferred by an earlier call to doUpgrade.

Specified by:
doDeferredUpgrade in interface DeferredUpgradeTask
Throws:
java.lang.Exception

runOnSpaceImport

public boolean runOnSpaceImport()
This task does not apply to spaces, only to global configuration.

Specified by:
runOnSpaceImport in interface BackupSupport
Returns:
false

breaksBackwardCompatibility

public boolean breaksBackwardCompatibility()
After downgrading from above 5.0 the default space content will be lost, but that should be acceptable. A downgrade task could at least restore the old default content.

Specified by:
breaksBackwardCompatibility in interface BackupSupport
Returns:
false.


Copyright © 2003-2014 Atlassian. All Rights Reserved.