public class ConvertToRelativeLinksUpgradeTask extends Object implements UpgradeTask, BackupSupport
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.
log| Constructor and Description |
|---|
ConvertToRelativeLinksUpgradeTask(org.springframework.transaction.PlatformTransactionManager transactionManager,
ContentDao contentDao,
BatchTask<ContentEntityObject> batchTask,
int applicationConfigBuildNumber) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
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() |
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.
|
public ConvertToRelativeLinksUpgradeTask(org.springframework.transaction.PlatformTransactionManager transactionManager,
ContentDao contentDao,
BatchTask<ContentEntityObject> batchTask,
int applicationConfigBuildNumber)
public void doUpgrade()
throws Exception
UpgradeTaskdoUpgrade in interface UpgradeTaskExceptionpublic String getBuildNumber()
getBuildNumber in interface UpgradeTaskInfopublic BuildNumberUpgradeConstraint getConstraint()
getConstraint in interface UpgradeTaskpublic String getShortDescription()
UpgradeTaskInfogetShortDescription in interface UpgradeTaskInfopublic boolean isDatabaseUpgrade()
isDatabaseUpgrade in interface UpgradeTaskInfopublic void validate()
throws Exception
UpgradeTaskvalidate in interface UpgradeTaskExceptionpublic Collection<UpgradeError> getErrors()
UpgradeTaskUpgradeError.getErrors in interface UpgradeTaskUpgradeError objects, sometimes null.public boolean runOnSpaceImport()
runOnSpaceImport in interface BackupSupportpublic boolean breaksBackwardCompatibility()
breaksBackwardCompatibility in interface BackupSupportpublic String getName()
UpgradeTaskInfogetName in interface UpgradeTaskInfoCopyright © 2003–2022 Atlassian. All rights reserved.