Class DefaultMacroManager
java.lang.Object
com.atlassian.confluence.renderer.DefaultMacroManager
- All Implemented Interfaces:
MacroManager,com.atlassian.renderer.v2.macro.MacroManager
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.atlassian.renderer.v2.macro.MacrogetEnabledMacro(String name) Returns the currently enabled macros, excluding user macros.voidpluginModuleDisabled(com.atlassian.plugin.event.events.PluginModuleDisabledEvent event) voidpluginModuleEnabled(com.atlassian.plugin.event.events.PluginModuleEnabledEvent event) voidregisterMacro(String name, com.atlassian.renderer.v2.macro.Macro macro) Registers a new macro with the given name.voidsetPluginEventManager(com.atlassian.plugin.event.PluginEventManager pluginEventManager) voidsetUserMacroLibrary(UserMacroLibrary userMacroLibrary) voidunregisterMacro(String name) Unregisters the macro with the given name.
-
Field Details
-
RESOURCE_PREFIX
- See Also:
-
-
Constructor Details
-
DefaultMacroManager
public DefaultMacroManager()
-
-
Method Details
-
getEnabledMacro
- Specified by:
getEnabledMacroin interfacecom.atlassian.renderer.v2.macro.MacroManager
-
getMacros
Description copied from interface:MacroManagerReturns the currently enabled macros, excluding user macros. For a list of user macros, seeUserMacroLibrary.- Specified by:
getMacrosin interfaceMacroManager
-
registerMacro
Description copied from interface:MacroManagerRegisters a new macro with the given name. If a macro already exists with that name, it is replaced by the new macro.- Specified by:
registerMacroin interfaceMacroManager- Parameters:
name- the name to register the macro under. For example, 'code'.macro- the macro to register
-
unregisterMacro
Unregisters the macro with the given name. Does nothing if no macro exists with that name.- Specified by:
unregisterMacroin interfaceMacroManager- Parameters:
name- the name of the macro to unregister. For example, 'code'.
-
pluginModuleEnabled
public void pluginModuleEnabled(com.atlassian.plugin.event.events.PluginModuleEnabledEvent event) -
pluginModuleDisabled
public void pluginModuleDisabled(com.atlassian.plugin.event.events.PluginModuleDisabledEvent event) -
setPluginEventManager
public void setPluginEventManager(com.atlassian.plugin.event.PluginEventManager pluginEventManager) -
setUserMacroLibrary
-