com.atlassian.confluence.upgrade.upgradetask
Class RemoveFixedWidthThemeUpgradeTask

java.lang.Object
  extended by com.atlassian.confluence.upgrade.AbstractUpgradeTask
      extended by com.atlassian.confluence.upgrade.upgradetask.RemoveFixedWidthThemeUpgradeTask
All Implemented Interfaces:
BackupSupport, DatabaseUpgradeTask, UpgradeTask, UpgradeTaskInfo, org.springframework.beans.factory.BeanNameAware

public class RemoveFixedWidthThemeUpgradeTask
extends AbstractUpgradeTask
implements DatabaseUpgradeTask


Constructor Summary
RemoveFixedWidthThemeUpgradeTask(ConfluenceBandanaRecordDao bandanaRecordDao, net.sf.hibernate.SessionFactory sessionFactory)
           
 
Method Summary
 boolean breaksBackwardCompatibility()
          Nothing will have a fixedwidth theme after downgrade but that is okay.
 void doUpgrade()
          Perform the upgrade.
 java.lang.String getBuildNumber()
           
 java.lang.String getShortDescription()
          A short (<50 chars) description of the upgrade action
 boolean runOnSpaceImport()
          This task isn't strictly necessary, since if the fixed width theme isn't installed the theme configuration code will handle that situation correctly.
 
Methods inherited from class com.atlassian.confluence.upgrade.AbstractUpgradeTask
addAllErrors, addError, addError, getConstraint, getErrors, getName, 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, isDatabaseUpgrade
 

Constructor Detail

RemoveFixedWidthThemeUpgradeTask

public RemoveFixedWidthThemeUpgradeTask(ConfluenceBandanaRecordDao bandanaRecordDao,
                                        net.sf.hibernate.SessionFactory sessionFactory)
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

getShortDescription

public java.lang.String getShortDescription()
Description copied from interface: UpgradeTaskInfo
A short (<50 chars) description of the upgrade action

Specified by:
getShortDescription in interface UpgradeTaskInfo
Overrides:
getShortDescription in class AbstractUpgradeTask

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 task isn't strictly necessary, since if the fixed width theme isn't installed the theme configuration code will handle that situation correctly.

Specified by:
runOnSpaceImport in interface BackupSupport
Returns:
false

breaksBackwardCompatibility

public boolean breaksBackwardCompatibility()
Nothing will have a fixedwidth theme after downgrade but that is okay.

Specified by:
breaksBackwardCompatibility in interface BackupSupport
Returns:
false


Copyright © 2003-2014 Atlassian. All Rights Reserved.