com.atlassian.confluence.upgrade.upgradetask
Class SetAttachmentStorageSettingForClustersUpgradeTask

java.lang.Object
  extended by com.atlassian.confluence.upgrade.AbstractUpgradeTask
      extended by 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.


Constructor Summary
SetAttachmentStorageSettingForClustersUpgradeTask(ClusterConfigurationHelper clusterConfigurationHelper, SettingsManager settingsManager)
           
 
Method Summary
 boolean breaksBackwardCompatibility()
          Attachment storage location setting has not effect on exports/imports
 void doUpgrade()
          Perform the upgrade.
 java.lang.String getBuildNumber()
           
 boolean runOnSpaceImport()
          This doesn't apply to spaces.
 
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
 
Methods inherited from interface com.atlassian.confluence.upgrade.UpgradeTask
getConstraint, getErrors, validate
 
Methods inherited from interface com.atlassian.confluence.upgrade.UpgradeTaskInfo
getName, getShortDescription, isDatabaseUpgrade
 

Constructor Detail

SetAttachmentStorageSettingForClustersUpgradeTask

public SetAttachmentStorageSettingForClustersUpgradeTask(ClusterConfigurationHelper clusterConfigurationHelper,
                                                         SettingsManager settingsManager)
Method Detail

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.