public interface MacroSchemaMigrator
A macro schema is defined as the definition of all the params and body type for a macro. If a macro's schema changes in an incompatible way, they should register a macro-schema-migrator to migrate from the given version in the macro-schema-migrator. Migrations will be performed in order as necessary.
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.
|
MacroDefinition migrateSchemaIfNecessary(MacroDefinition macroDefinition, ConversionContext context) throws XhtmlException
macroDefinition
- the macro definition to migratecontext
- the context used to perform the migrationXhtmlException
- if any migrations failCopyright © 2003–2017 Atlassian. All rights reserved.