public class ConditionallyEnableMailArchivePluginUpgradeTask extends AbstractDeferredRunUpgradeTask
Constructor and Description |
---|
ConditionallyEnableMailArchivePluginUpgradeTask(org.springframework.transaction.PlatformTransactionManager transactionManager,
org.hibernate.SessionFactory sessionFactory,
com.atlassian.plugin.PluginAccessor pluginAccessor,
com.atlassian.plugin.PluginController pluginController) |
Modifier and Type | Method and Description |
---|---|
boolean |
breaksBackwardCompatibility()
The only action of this task is to enable the Mail plugin, which is backwards-compatible.
|
void |
doDeferredUpgrade()
Run the upgrade that was deferred by an earlier call to doUpgrade.
|
String |
getBuildNumber() |
Collection<UpgradeError> |
getErrors()
Return any errors that occur.
|
String |
getShortDescription()
A short (<50 chars) description of the upgrade action
|
boolean |
runOnSpaceImport()
This upgrade task doesn't modify space-level information
|
doUpgrade, isUpgradeRequired, setUpgradeRequired
addAllErrors, addError, addError, getConstraint, getName, isDatabaseUpgrade, setBeanName, setBuildNumber, validate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getConstraint, validate
getName, isDatabaseUpgrade
public ConditionallyEnableMailArchivePluginUpgradeTask(org.springframework.transaction.PlatformTransactionManager transactionManager, org.hibernate.SessionFactory sessionFactory, com.atlassian.plugin.PluginAccessor pluginAccessor, com.atlassian.plugin.PluginController pluginController)
public void doDeferredUpgrade() throws Exception
DeferredUpgradeTask
Exception
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 breaksBackwardCompatibility()
public boolean runOnSpaceImport()
public Collection<UpgradeError> getErrors()
UpgradeTask
UpgradeError
.getErrors
in interface UpgradeTask
getErrors
in class AbstractUpgradeTask
UpgradeError
objects, sometimes null.Copyright © 2003–2020 Atlassian. All rights reserved.