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, UpgradeTaskInfo, org.springframework.beans.factory.BeanNameAware

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.
 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, 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.UpgradeTask
doUpgrade, getConstraint, getErrors, validate
 
Methods inherited from interface com.atlassian.confluence.upgrade.UpgradeTaskInfo
getName, getShortDescription, isDatabaseUpgrade
 

Constructor Detail

DefaultSpaceContentToPageTemplateUpgradeTask

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

getBuildNumber

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

doDeferredUpgrade

public void doDeferredUpgrade()
                       throws 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:
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–2015 Atlassian. All rights reserved.