Class PageTemplateWikiToXhtmlMigrationUpgradeTask

  extended by com.atlassian.confluence.upgrade.AbstractUpgradeTask
      extended by com.atlassian.confluence.upgrade.AbstractDeferredRunUpgradeTask
          extended by com.atlassian.confluence.upgrade.upgradetask.PageTemplateWikiToXhtmlMigrationUpgradeTask
All Implemented Interfaces:
DatabaseUpgradeTask, DeferredUpgradeTask, UpgradeTask

public class PageTemplateWikiToXhtmlMigrationUpgradeTask
extends AbstractDeferredRunUpgradeTask
implements DatabaseUpgradeTask

Convert all wiki formatted content to XHTML content as part of the upgrade. It should be noted that any migration errors from individual pages will be recorded and logged but will not cause the upgrade itself to fail. This is to allow for cases where most content migrates successfully and there are simply a few failures that can be fixed through a different mechanism.

Field Summary
Fields inherited from interface com.atlassian.confluence.upgrade.UpgradeTask
Constructor Summary
PageTemplateWikiToXhtmlMigrationUpgradeTask(WikiToXhtmlSiteMigrator migrator)
Method Summary
 void doDeferredUpgrade()
          Run the upgrade that was deferred by an earlier call to doUpgrade.
 String getBuildNumber()
 String getShortDescription()
          A short (<50 chars) description of the upgrade action
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, 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

Constructor Detail


public PageTemplateWikiToXhtmlMigrationUpgradeTask(WikiToXhtmlSiteMigrator migrator)
Method Detail


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


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


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

Specified by:
getShortDescription in interface UpgradeTask
getShortDescription in class AbstractUpgradeTask

Copyright © 2003-2012 Atlassian. All Rights Reserved.