Class DecoratorLangMacroReplacementUpgradeTask
java.lang.Object
com.atlassian.confluence.upgrade.AbstractUpgradeTask
com.atlassian.confluence.upgrade.upgradetask.DecoratorLangMacroReplacementUpgradeTask
- All Implemented Interfaces:
BackupSupport,DatabaseUpgradeTask,UpgradeTask,UpgradeTaskInfo,org.springframework.beans.factory.Aware,org.springframework.beans.factory.BeanNameAware
public class DecoratorLangMacroReplacementUpgradeTask
extends AbstractUpgradeTask
implements DatabaseUpgradeTask
Check custom decorators for lang macro usage and replace with inline equivalent.
See CONFSERVER-95142
- Since:
- 8.9.1
-
Constructor Summary
ConstructorsConstructorDescriptionDecoratorLangMacroReplacementUpgradeTask(org.hibernate.SessionFactory sessionFactory, PersistentDecoratorDao persistentDecoratorDao) -
Method Summary
Modifier and TypeMethodDescriptionbooleanfalselike it says.voidPerform the upgrade.A short (invalid input: '<'50 chars) description of the upgrade actionbooleantrueif imports/exports may be effected, false if not.Methods inherited from class com.atlassian.confluence.upgrade.AbstractUpgradeTask
addAllErrors, addError, addError, getConstraint, getErrors, getName, isDatabaseUpgrade, setBeanName, setBuildNumber, validateMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.atlassian.confluence.upgrade.UpgradeTask
getConstraint, getErrors, validateMethods inherited from interface com.atlassian.confluence.upgrade.UpgradeTaskInfo
getName, isDatabaseUpgrade
-
Constructor Details
-
DecoratorLangMacroReplacementUpgradeTask
public DecoratorLangMacroReplacementUpgradeTask(org.hibernate.SessionFactory sessionFactory, PersistentDecoratorDao persistentDecoratorDao)
-
-
Method Details
-
getBuildNumber
- Specified by:
getBuildNumberin interfaceUpgradeTaskInfo- Overrides:
getBuildNumberin classAbstractUpgradeTask- Returns:
- The build number that this upgrade is applicable to
-
getShortDescription
Description copied from interface:UpgradeTaskInfoA short (invalid input: '<'50 chars) description of the upgrade action- Specified by:
getShortDescriptionin interfaceUpgradeTaskInfo- Overrides:
getShortDescriptionin classAbstractUpgradeTask
-
runOnSpaceImport
public boolean runOnSpaceImport()trueif imports/exports may be effected, false if not.- Specified by:
runOnSpaceImportin interfaceBackupSupport
-
breaksBackwardCompatibility
public boolean breaksBackwardCompatibility()falselike it says.- Specified by:
breaksBackwardCompatibilityin interfaceBackupSupport
-
doUpgrade
Description copied from interface:UpgradeTaskPerform the upgrade.- Specified by:
doUpgradein interfaceUpgradeTask- Throws:
Exception
-