Class UserMacroLibrary
java.lang.Object
com.atlassian.confluence.renderer.UserMacroLibrary
- All Implemented Interfaces:
org.springframework.beans.factory.DisposableBean,org.springframework.beans.factory.InitializingBean
public class UserMacroLibrary
extends Object
implements org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.DisposableBean
A library of user defined macros, stored in and retrieved from Bandana on request.
Note that since Confluence 4.0 this UserMacroLibrary is now aware of when user macros have been hidden by an identically named macro from a plugin (even a user macro from a plugin). So the existing methods on the library will now only return macros that are not hidden.
-
Constructor Summary
ConstructorsConstructorDescriptionUserMacroLibrary(BandanaManager bandanaManager, com.atlassian.event.api.EventPublisher eventPublisher, Supplier<MacroManager> macroManagerSupplier) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddUpdateMacro(UserMacroConfig userMacroConfig) voidvoiddestroy()booleanvoidvoidvoidvoidremoveMacro(String name)
-
Constructor Details
-
UserMacroLibrary
public UserMacroLibrary(BandanaManager bandanaManager, com.atlassian.event.api.EventPublisher eventPublisher, Supplier<MacroManager> macroManagerSupplier) - Since:
- 8.6
-
-
Method Details
-
addUpdateMacro
-
hasMacro
-
getMacro
-
removeMacro
-
getMacroNames
- Returns:
- the names of all the user macros except for those that are hidden by a duplicate macro from a plugin.
-
getMacros
- Returns:
- all the user macros except for those that are hidden by a duplicate macro from a plugin.
-
pluginMacroRegistered
-
pluginMacroUnregistered
-
pluginSystemStarted
-
destroy
- Specified by:
destroyin interfaceorg.springframework.beans.factory.DisposableBean- Throws:
Exception
-
afterPropertiesSet
- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean- Throws:
Exception
-