Class RemigrationLifecycleItem

java.lang.Object
com.atlassian.confluence.content.render.xhtml.migration.macro.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.

  • Field Details

  • Constructor Details

    • RemigrationLifecycleItem

      public RemigrationLifecycleItem()
  • Method Details

    • 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
    • setMigrationRequiredListener

      public void setMigrationRequiredListener(MigrationRequiredListener listener)
    • setMacroMigrationService

      public void setMacroMigrationService(MacroMigrationService migrationService)
    • setEventPublisher

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