|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.confluence.upgrade.upgradetask.ChangeSpaceDescriptionsBodyTypeUpgradeTask
public class ChangeSpaceDescriptionsBodyTypeUpgradeTask
This upgrade task has two responsibilities:
(1) update all SpaceDescriptions that have a BodyContent with type BodyType.XHTML back to BodyType.WIKI.
(2) resolve all entity references introduced as a result of erroneously marking SpaceDescription's as XHTML to begin with.
Field Summary |
---|
Fields inherited from interface com.atlassian.confluence.upgrade.UpgradeTask |
---|
log |
Constructor Summary | |
---|---|
ChangeSpaceDescriptionsBodyTypeUpgradeTask(org.springframework.transaction.PlatformTransactionManager transactionManager,
ContentDao contentDao,
BatchTask<ContentEntityObject> batchTask,
int applicationConfigBuildNumber)
|
Method Summary | |
---|---|
void |
doUpgrade()
Perform the upgrade. |
java.lang.String |
getBuildNumber()
|
BuildNumberUpgradeConstraint |
getConstraint()
|
java.util.Collection<UpgradeError> |
getErrors()
Return any errors that occur. |
java.lang.String |
getShortDescription()
A short (<50 chars) description of the upgrade action |
void |
validate()
Validates that this upgrade task can be performed. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ChangeSpaceDescriptionsBodyTypeUpgradeTask(org.springframework.transaction.PlatformTransactionManager transactionManager, ContentDao contentDao, BatchTask<ContentEntityObject> batchTask, int applicationConfigBuildNumber)
Method Detail |
---|
public void doUpgrade() throws java.lang.Exception
UpgradeTask
doUpgrade
in interface UpgradeTask
java.lang.Exception
public java.lang.String getBuildNumber()
getBuildNumber
in interface UpgradeTask
public BuildNumberUpgradeConstraint getConstraint()
getConstraint
in interface UpgradeTask
public java.lang.String getShortDescription()
UpgradeTask
getShortDescription
in interface UpgradeTask
public void validate() throws java.lang.Exception
UpgradeTask
validate
in interface UpgradeTask
java.lang.Exception
public java.util.Collection<UpgradeError> getErrors()
UpgradeTask
UpgradeError
.
getErrors
in interface UpgradeTask
UpgradeError
objects, sometimes null.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |