com.atlassian.confluence.content.render.xhtml.migration.macro
Class RemigrationLifecycleItem

java.lang.Object
  extended by 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 wiki markup 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 Summary
RemigrationLifecycleItem()
           
 
Method Summary
 void setEventPublisher(com.atlassian.event.api.EventPublisher publisher)
           
 void setMacroMigrationService(MacroMigrationService migrationService)
           
 void setMigrationRequiredListener(MigrationRequiredListener listener)
           
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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

setMigrationRequiredListener

public void setMigrationRequiredListener(MigrationRequiredListener listener)

setMacroMigrationService

public void setMacroMigrationService(MacroMigrationService migrationService)

setEventPublisher

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


Copyright © 2003-2013 Atlassian. All Rights Reserved.