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 Summary
Fields Modifier and Type Field Description protected static StringSTARTUP_REMIGRATION_DISABLED
-
Constructor Summary
Constructors Constructor Description RemigrationLifecycleItem()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidsetEventPublisher(com.atlassian.event.api.EventPublisher publisher)voidsetMacroMigrationService(MacroMigrationService migrationService)voidsetMigrationRequiredListener(MigrationRequiredListener listener)voidshutdown(com.atlassian.config.lifecycle.LifecycleContext context)voidstartup(com.atlassian.config.lifecycle.LifecycleContext context)registers the migration required listener to listen for any plugin enabled events that happen after startup, also runs the remigration if necessary.
-
-
-
Field Detail
-
STARTUP_REMIGRATION_DISABLED
protected static final String STARTUP_REMIGRATION_DISABLED
- See Also:
- Constant Field Values
-
-
Method Detail
-
startup
public void startup(com.atlassian.config.lifecycle.LifecycleContext context) throws Exceptionregisters the migration required listener to listen for any plugin enabled events that happen after startup, also runs the remigration if necessary.- Specified by:
startupin interfacecom.atlassian.config.lifecycle.LifecycleItem- Throws:
Exception
-
shutdown
public void shutdown(com.atlassian.config.lifecycle.LifecycleContext context) throws Exception- Specified by:
shutdownin interfacecom.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)
-
-