|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.confluence.upgrade.upgradetask.ConvertToRelativeLinksUpgradeTask
public class ConvertToRelativeLinksUpgradeTask
Converts any absolute links in storage format to relative links. A relative link is defined as a one which either does not have a space key on its ResourceIdentifier or does not have a ResourceIdentifier at all.
This upgrade task is only required on instances that have already had Confluence 4.0 installed.
Field Summary |
---|
Fields inherited from interface com.atlassian.confluence.upgrade.UpgradeTask |
---|
log |
Constructor Summary | |
---|---|
ConvertToRelativeLinksUpgradeTask(org.springframework.transaction.PlatformTransactionManager transactionManager,
ContentDao contentDao,
BatchTask<ContentEntityObject> batchTask,
int applicationConfigBuildNumber)
|
Method Summary | |
---|---|
boolean |
breaksBackwardCompatibility()
This data cleanup task isn't in response to a format change, so doesn't break backward compatibility. |
void |
doUpgrade()
Perform the upgrade. |
java.lang.String |
getBuildNumber()
|
BuildNumberUpgradeConstraint |
getConstraint()
|
java.util.Collection<UpgradeError> |
getErrors()
Return any errors that occur. |
java.lang.String |
getName()
The human-readable name of the upgrade task |
java.lang.String |
getShortDescription()
A short (<50 chars) description of the upgrade action |
boolean |
isDatabaseUpgrade()
|
boolean |
runOnSpaceImport()
This data cleanup task is a nicety that improves the existing data, but the old data wasn't actually wrong, just suboptimal, and is still valid. |
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 ConvertToRelativeLinksUpgradeTask(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 UpgradeTaskInfo
public BuildNumberUpgradeConstraint getConstraint()
getConstraint
in interface UpgradeTask
public java.lang.String getShortDescription()
UpgradeTaskInfo
getShortDescription
in interface UpgradeTaskInfo
public boolean isDatabaseUpgrade()
isDatabaseUpgrade
in interface UpgradeTaskInfo
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.public boolean runOnSpaceImport()
runOnSpaceImport
in interface BackupSupport
public boolean breaksBackwardCompatibility()
breaksBackwardCompatibility
in interface BackupSupport
public java.lang.String getName()
UpgradeTaskInfo
getName
in interface UpgradeTaskInfo
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |