public class MailServerUpgradeTask extends AbstractUpgradeTask implements DatabaseUpgradeTask
Constructor and Description |
---|
MailServerUpgradeTask(ConfluenceBandanaRecordDao confluenceBandanaRecordDao,
com.atlassian.mail.server.MailServerManager mailServerManager,
com.atlassian.bandana.BandanaPersister bandanaPersister) |
Modifier and Type | Method and Description |
---|---|
boolean |
breaksBackwardCompatibility()
This task replaces the value in
ConfluenceBandanaKeys.MAIL_ACCOUNTS . |
void |
doUpgrade()
Perform the upgrade.
|
String |
getBuildNumber() |
String |
getShortDescription()
A short (<50 chars) description of the upgrade action
|
boolean |
runOnSpaceImport()
This task doesn't modify space-level information
|
addAllErrors, addError, addError, getConstraint, getErrors, getName, isDatabaseUpgrade, setBeanName, setBuildNumber, validate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getConstraint, getErrors, validate
getName, isDatabaseUpgrade
public MailServerUpgradeTask(ConfluenceBandanaRecordDao confluenceBandanaRecordDao, com.atlassian.mail.server.MailServerManager mailServerManager, com.atlassian.bandana.BandanaPersister bandanaPersister)
public String getBuildNumber()
getBuildNumber
in interface UpgradeTaskInfo
getBuildNumber
in class AbstractUpgradeTask
public String getShortDescription()
UpgradeTaskInfo
getShortDescription
in interface UpgradeTaskInfo
getShortDescription
in class AbstractUpgradeTask
public boolean runOnSpaceImport()
runOnSpaceImport
in interface BackupSupport
public boolean breaksBackwardCompatibility()
ConfluenceBandanaKeys.MAIL_ACCOUNTS
.
We don't know whether the new value can be used in older versions, so we'll mark
it as non-backward compatible.breaksBackwardCompatibility
in interface BackupSupport
public void doUpgrade() throws Exception
UpgradeTask
doUpgrade
in interface UpgradeTask
Exception
Copyright © 2003–2019 Atlassian. All rights reserved.