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
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 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 String getName()
UpgradeTaskInfo
getName
in interface UpgradeTaskInfo
Copyright © 2003–2018 Atlassian. All rights reserved.