Class DefaultMacroSchemaMigrator
- java.lang.Object
-
- com.atlassian.confluence.impl.macro.schema.DefaultMacroSchemaMigrator
-
- All Implemented Interfaces:
MacroSchemaMigrator
public class DefaultMacroSchemaMigrator extends Object implements MacroSchemaMigrator
-
-
Constructor Summary
Constructors Constructor Description DefaultMacroSchemaMigrator(com.atlassian.plugin.PluginAccessor pluginAccessor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MacroDefinitionmigrateSchemaIfNecessary(MacroDefinition macroDefinition, ConversionContext context)Migrates the macro definition to the latest version of it's macro schema.
-
-
-
Method Detail
-
migrateSchemaIfNecessary
public MacroDefinition migrateSchemaIfNecessary(MacroDefinition macroDefinition, ConversionContext context) throws XhtmlException
Description copied from interface:MacroSchemaMigratorMigrates the macro definition to the latest version of it's macro schema.- Specified by:
migrateSchemaIfNecessaryin interfaceMacroSchemaMigrator- Parameters:
macroDefinition- the macro definition to migratecontext- the context used to perform the migration- Returns:
- the migrated macro definition or the existing macro definition if no migration occured
- Throws:
XhtmlException- if any migrations fail
-
-