|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.confluence.macro.xhtml.DefaultMacroMigrationManager
public class DefaultMacroMigrationManager
Listens for plugin events and registers / unregisters the macro migration tasks with itself.
The migration tasks are wrapped in a LazyReference
in order to only
instantiate them upon first usage.
This MacroMigrationManager uses a white list of macro names that may be migrated. The default set of names is supplied on construction and additional names are read as comma separated values from the System property "confluence.macro.migration.white.list".
Constructor Summary | |
---|---|
DefaultMacroMigrationManager(MacroMigration richTextMacroMigration,
MacroMigration plainTextMacroMigration,
MacroMigration v2MacroToUnmigratedWikiMarkupMacroMigration,
MacroManager xhtmlOnlyMacroManager,
MacroManager v2CompatibileMacroManager,
MacroManager v2MacroManager,
Set<String> whitelistedNames)
Sets the macro manager and the migration tasks for the rich text and plain text migrations. |
Method Summary | |
---|---|
MacroMigration |
getMacroMigration(String macroName)
Returns the MacroMigration for the given macro. |
void |
pluginModuleDisabled(com.atlassian.plugin.event.events.PluginModuleDisabledEvent event)
|
void |
pluginModuleEnabled(com.atlassian.plugin.event.events.PluginModuleEnabledEvent event)
|
void |
setPluginEventManager(com.atlassian.plugin.event.PluginEventManager pluginEventManager)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultMacroMigrationManager(MacroMigration richTextMacroMigration, MacroMigration plainTextMacroMigration, MacroMigration v2MacroToUnmigratedWikiMarkupMacroMigration, MacroManager xhtmlOnlyMacroManager, MacroManager v2CompatibileMacroManager, MacroManager v2MacroManager, Set<String> whitelistedNames)
Method Detail |
---|
public MacroMigration getMacroMigration(String macroName)
MacroMigrationManager
MacroMigration
for the given macro.
If a custom MacroMigration
is registered for this macro name
it will be returned, otherwise if the macro implements the Macro
interface it will return a MacroMigration
based on the type of macro.
getMacroMigration
in interface MacroMigrationManager
public void pluginModuleEnabled(com.atlassian.plugin.event.events.PluginModuleEnabledEvent event)
public void pluginModuleDisabled(com.atlassian.plugin.event.events.PluginModuleDisabledEvent event)
public void setPluginEventManager(com.atlassian.plugin.event.PluginEventManager pluginEventManager)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |