Class RemigrationLifecycleItem

  • All Implemented Interfaces:
    com.atlassian.config.lifecycle.LifecycleItem

    public class RemigrationLifecycleItem
    extends Object
    implements com.atlassian.config.lifecycle.LifecycleItem
    Lifecycle item to run a remigration of pages that have unmigrated macros, this is only performed if the service deems it is required.

    Also enabled the migrationRequiredListener to listen for new plugin enabled events now that confluence has started up.

    • Constructor Detail

      • RemigrationLifecycleItem

        public RemigrationLifecycleItem()
    • Method Detail

      • startup

        public void startup​(com.atlassian.config.lifecycle.LifecycleContext context)
                     throws Exception
        registers the migration required listener to listen for any plugin enabled events that happen after startup, also runs the remigration if necessary.
        Specified by:
        startup in interface com.atlassian.config.lifecycle.LifecycleItem
        Throws:
        Exception
      • shutdown

        public void shutdown​(com.atlassian.config.lifecycle.LifecycleContext context)
                      throws Exception
        Specified by:
        shutdown in interface com.atlassian.config.lifecycle.LifecycleItem
        Throws:
        Exception
      • setMacroMigrationService

        public void setMacroMigrationService​(MacroMigrationService migrationService)
      • setEventPublisher

        public void setEventPublisher​(com.atlassian.event.api.EventPublisher publisher)