Class DefaultMacroSchemaMigrator
java.lang.Object
com.atlassian.confluence.impl.macro.schema.DefaultMacroSchemaMigrator
- All Implemented Interfaces:
MacroSchemaMigrator
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultMacroSchemaMigrator
(com.atlassian.plugin.PluginAccessor pluginAccessor) -
Method Summary
Modifier and TypeMethodDescriptionmigrateSchemaIfNecessary
(MacroDefinition macroDefinition, ConversionContext context) Migrates the macro definition to the latest version of it's macro schema.
-
Constructor Details
-
DefaultMacroSchemaMigrator
public DefaultMacroSchemaMigrator(com.atlassian.plugin.PluginAccessor pluginAccessor)
-
-
Method Details
-
migrateSchemaIfNecessary
public MacroDefinition migrateSchemaIfNecessary(MacroDefinition macroDefinition, ConversionContext context) throws XhtmlException Description copied from interface:MacroSchemaMigrator
Migrates the macro definition to the latest version of it's macro schema.- Specified by:
migrateSchemaIfNecessary
in 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
-