com.atlassian.confluence.upgrade.upgradetask
Class WelcomeMessageUpgradeTask
java.lang.Object
com.atlassian.confluence.upgrade.AbstractUpgradeTask
com.atlassian.confluence.upgrade.AbstractDeferredRunUpgradeTask
com.atlassian.confluence.upgrade.upgradetask.WelcomeMessageUpgradeTask
- All Implemented Interfaces:
- BackupSupport, DatabaseUpgradeTask, DeferredUpgradeTask, UpgradeTask
public class WelcomeMessageUpgradeTask
- extends AbstractDeferredRunUpgradeTask
- implements DatabaseUpgradeTask
Fields inherited from interface com.atlassian.confluence.upgrade.UpgradeTask |
log |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WelcomeMessageUpgradeTask
public WelcomeMessageUpgradeTask(SettingsManager settingsManager,
XhtmlContent xhtmlContent,
WelcomeMessageService welcomeMessageService,
org.springframework.transaction.PlatformTransactionManager transactionManager,
I18NBeanFactory i18NBeanFactory)
getBuildNumber
public String getBuildNumber()
- Specified by:
getBuildNumber
in interface UpgradeTask
- Overrides:
getBuildNumber
in class AbstractUpgradeTask
doDeferredUpgrade
public void doDeferredUpgrade()
throws Exception
- Specified by:
doDeferredUpgrade
in interface DeferredUpgradeTask
- Throws:
Exception
runOnSpaceImport
public boolean runOnSpaceImport()
- This task affects only the site welcome message, so it is not required on space import.
- Specified by:
runOnSpaceImport
in interface BackupSupport
- Returns:
- false
breaksBackwardCompatibility
public boolean breaksBackwardCompatibility()
- This breaks backward compatibility with earlier versions of Confluence. A downgrade task could remove the
system welcome message and print it out, which is similar to what this upgrade task does if it fails to
convert the wiki markup.
- Specified by:
breaksBackwardCompatibility
in interface BackupSupport