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 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
setEventPublisher
(com.atlassian.event.api.EventPublisher publisher) void
setMacroMigrationService
(MacroMigrationService migrationService) void
void
shutdown
(com.atlassian.config.lifecycle.LifecycleContext context) void
startup
(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 Details
-
STARTUP_REMIGRATION_DISABLED
- See Also:
-
-
Constructor Details
-
RemigrationLifecycleItem
public RemigrationLifecycleItem()
-
-
Method Details
-
startup
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 interfacecom.atlassian.config.lifecycle.LifecycleItem
- Throws:
Exception
-
shutdown
- Specified by:
shutdown
in interfacecom.atlassian.config.lifecycle.LifecycleItem
- Throws:
Exception
-
setMigrationRequiredListener
-
setMacroMigrationService
-
setEventPublisher
public void setEventPublisher(com.atlassian.event.api.EventPublisher publisher)
-