Class DefaultMacroSchemaMigrator
java.lang.Object
com.atlassian.confluence.impl.macro.schema.DefaultMacroSchemaMigrator
- All Implemented Interfaces:
- MacroSchemaMigrator
- 
Constructor SummaryConstructorsConstructorDescriptionDefaultMacroSchemaMigrator(com.atlassian.plugin.PluginAccessor pluginAccessor) 
- 
Method SummaryModifier and TypeMethodDescriptionmigrateSchemaIfNecessary(MacroDefinition macroDefinition, ConversionContext context) Migrates the macro definition to the latest version of it's macro schema.
- 
Constructor Details- 
DefaultMacroSchemaMigratorpublic DefaultMacroSchemaMigrator(com.atlassian.plugin.PluginAccessor pluginAccessor) 
 
- 
- 
Method Details- 
migrateSchemaIfNecessarypublic 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 interface- MacroSchemaMigrator
- Parameters:
- macroDefinition- the macro definition to migrate
- context- 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
 
 
-