com.atlassian.confluence.upgrade.upgradetask
Class MailServerUpgradeTask

java.lang.Object
  extended by com.atlassian.confluence.upgrade.AbstractUpgradeTask
      extended by com.atlassian.confluence.upgrade.upgradetask.MailServerUpgradeTask
All Implemented Interfaces:
BackupSupport, DatabaseUpgradeTask, UpgradeTask, UpgradeTaskInfo, org.springframework.beans.factory.BeanNameAware

public class MailServerUpgradeTask
extends AbstractUpgradeTask
implements DatabaseUpgradeTask


Constructor Summary
MailServerUpgradeTask(com.atlassian.cache.CacheFactory cacheFactory, ConfluenceBandanaRecordDao confluenceBandanaRecordDao, com.atlassian.mail.server.MailServerManager mailServerManager)
           
 
Method Summary
 boolean breaksBackwardCompatibility()
          This task replaces the value in ConfluenceBandanaKeys.MAIL_ACCOUNTS.
 void doUpgrade()
          Perform the upgrade.
 java.lang.String getBuildNumber()
           
 java.lang.String getShortDescription()
          A short (<50 chars) description of the upgrade action
 boolean runOnSpaceImport()
          This task doesn't modify space-level information
 
Methods inherited from class com.atlassian.confluence.upgrade.AbstractUpgradeTask
addAllErrors, addError, addError, getConstraint, getErrors, getName, 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
getConstraint, getErrors, validate
 
Methods inherited from interface com.atlassian.confluence.upgrade.UpgradeTaskInfo
getName, isDatabaseUpgrade
 

Constructor Detail

MailServerUpgradeTask

public MailServerUpgradeTask(com.atlassian.cache.CacheFactory cacheFactory,
                             ConfluenceBandanaRecordDao confluenceBandanaRecordDao,
                             com.atlassian.mail.server.MailServerManager mailServerManager)
Method Detail

getBuildNumber

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

getShortDescription

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

Specified by:
getShortDescription in interface UpgradeTaskInfo
Overrides:
getShortDescription in class AbstractUpgradeTask

runOnSpaceImport

public boolean runOnSpaceImport()
This task doesn't modify space-level information

Specified by:
runOnSpaceImport in interface BackupSupport
Returns:
false

breaksBackwardCompatibility

public boolean breaksBackwardCompatibility()
This task replaces the value in 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.

Specified by:
breaksBackwardCompatibility in interface BackupSupport
Returns:
true

doUpgrade

public void doUpgrade()
               throws java.lang.Exception
Description copied from interface: UpgradeTask
Perform the upgrade.

Specified by:
doUpgrade in interface UpgradeTask
Throws:
java.lang.Exception


Copyright © 2003-2014 Atlassian. All Rights Reserved.