Class 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 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.