com.atlassian.confluence.upgrade.upgradetask
Class SetAttachmentStorageSettingForClustersUpgradeTask
java.lang.Object
com.atlassian.confluence.upgrade.AbstractUpgradeTask
com.atlassian.confluence.upgrade.upgradetask.SetAttachmentStorageSettingForClustersUpgradeTask
- All Implemented Interfaces:
- BackupSupport, DatabaseUpgradeTask, UpgradeTask, UpgradeTaskInfo, org.springframework.beans.factory.BeanNameAware
public class SetAttachmentStorageSettingForClustersUpgradeTask
- extends AbstractUpgradeTask
- implements DatabaseUpgradeTask
Set attachment storage type setting to database for clustered instances.
Setting the attachmentDataStore to be
ConfluenceHomeGlobalConstants.ATTACHMENT_STORAGE_DATABASE
.
This is because prior to this release, clusters were hard coded to use the
database for attachment storage, and this setting was ignored. This task
will ensure the setting is set to the correct value.
Methods inherited from class com.atlassian.confluence.upgrade.AbstractUpgradeTask |
addAllErrors, addError, addError, getConstraint, getErrors, getName, getShortDescription, isDatabaseUpgrade, setBeanName, setBuildNumber, validate |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SetAttachmentStorageSettingForClustersUpgradeTask
public SetAttachmentStorageSettingForClustersUpgradeTask(ClusterConfigurationHelper clusterConfigurationHelper,
SettingsManager settingsManager)
getBuildNumber
public java.lang.String getBuildNumber()
- Specified by:
getBuildNumber
in interface UpgradeTaskInfo
- Overrides:
getBuildNumber
in class AbstractUpgradeTask
- Returns:
- The build number that this upgrade is applicable to
doUpgrade
public void doUpgrade()
throws java.lang.Exception
- Description copied from interface:
UpgradeTask
- Perform the upgrade.
- Specified by:
doUpgrade
in interface UpgradeTask
- Throws:
java.lang.Exception
runOnSpaceImport
public boolean runOnSpaceImport()
- This doesn't apply to spaces.
- Specified by:
runOnSpaceImport
in interface BackupSupport
- Returns:
- false
breaksBackwardCompatibility
public boolean breaksBackwardCompatibility()
- Attachment storage location setting has not effect on exports/imports
- Specified by:
breaksBackwardCompatibility
in interface BackupSupport
- Returns:
- false
Copyright © 2003-2014 Atlassian. All Rights Reserved.