Class MigrationRequiredListener
- java.lang.Object
-
- com.atlassian.confluence.content.render.xhtml.migration.macro.MigrationRequiredListener
-
public class MigrationRequiredListener extends Object
Listens for plugin enabled events and requests the macro migration service to update the migration required flag when one is encountered. This allows for the case when macros with wiki markup bodies are upgraded post 4.0 migration to ones with xhtml bodies. This also handles migrating XHTML v1 storage format macros to v2, and so on.
-
-
Constructor Summary
Constructors Constructor Description MigrationRequiredListener(MacroMigrationService macroMigrationService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
handlePluginInstalledEvent(com.atlassian.plugin.event.events.PluginModuleEnabledEvent e)
Handle a plugin installed event, ask the service to update the migration required field, so that the next time the system is restarted the migration is performed.
-
-
-
Constructor Detail
-
MigrationRequiredListener
public MigrationRequiredListener(MacroMigrationService macroMigrationService)
-
-
Method Detail
-
handlePluginInstalledEvent
@EventListener public void handlePluginInstalledEvent(com.atlassian.plugin.event.events.PluginModuleEnabledEvent e)
Handle a plugin installed event, ask the service to update the migration required field, so that the next time the system is restarted the migration is performed.
-
-