public class ChangeSpaceDescriptionsBodyTypeUpgradeTask extends Object implements UpgradeTask
This upgrade task is only required on instances that upgraded to 4.0.0.
log
Constructor and Description |
---|
ChangeSpaceDescriptionsBodyTypeUpgradeTask(org.springframework.transaction.PlatformTransactionManager transactionManager,
ContentDao contentDao,
BatchTask<ContentEntityObject> batchTask,
int applicationConfigBuildNumber) |
Modifier and Type | Method and Description |
---|---|
void |
doUpgrade()
Perform the upgrade.
|
String |
getBuildNumber() |
BuildNumberUpgradeConstraint |
getConstraint() |
Collection<UpgradeError> |
getErrors()
Return any errors that occur.
|
String |
getName()
The human-readable name of the upgrade task
|
String |
getShortDescription()
A short (<50 chars) description of the upgrade action
|
boolean |
isDatabaseUpgrade() |
void |
validate()
Validates that this upgrade task can be performed.
|
public ChangeSpaceDescriptionsBodyTypeUpgradeTask(org.springframework.transaction.PlatformTransactionManager transactionManager, ContentDao contentDao, BatchTask<ContentEntityObject> batchTask, int applicationConfigBuildNumber)
public void doUpgrade() throws Exception
UpgradeTask
doUpgrade
in interface UpgradeTask
Exception
public String getBuildNumber()
getBuildNumber
in interface UpgradeTaskInfo
public BuildNumberUpgradeConstraint getConstraint()
getConstraint
in interface UpgradeTask
public String getShortDescription()
UpgradeTaskInfo
getShortDescription
in interface UpgradeTaskInfo
public boolean isDatabaseUpgrade()
isDatabaseUpgrade
in interface UpgradeTaskInfo
public void validate() throws Exception
UpgradeTask
validate
in interface UpgradeTask
Exception
public String getName()
UpgradeTaskInfo
getName
in interface UpgradeTaskInfo
public Collection<UpgradeError> getErrors()
UpgradeTask
UpgradeError
.getErrors
in interface UpgradeTask
UpgradeError
objects, sometimes null.Copyright © 2003–2016 Atlassian. All rights reserved.