public class DefaultMacroSchemaMigrator extends Object implements MacroSchemaMigrator
Constructor and Description |
---|
DefaultMacroSchemaMigrator(com.atlassian.plugin.PluginAccessor pluginAccessor) |
Modifier and Type | Method and Description |
---|---|
MacroDefinition |
migrateSchemaIfNecessary(MacroDefinition macroDefinition,
ConversionContext context)
Migrates the macro definition to the latest version of it's macro schema.
|
public DefaultMacroSchemaMigrator(com.atlassian.plugin.PluginAccessor pluginAccessor)
public MacroDefinition migrateSchemaIfNecessary(MacroDefinition macroDefinition, ConversionContext context) throws XhtmlException
MacroSchemaMigrator
migrateSchemaIfNecessary
in interface MacroSchemaMigrator
macroDefinition
- the macro definition to migratecontext
- the context used to perform the migrationXhtmlException
- if any migrations failCopyright © 2003–2020 Atlassian. All rights reserved.