Class UserMacroMetadataProvider
java.lang.Object
com.atlassian.confluence.macro.browser.UserMacroMetadataProvider
- All Implemented Interfaces:
MacroMetadataProvider
Serves metadata for user macros managed by the
UserMacroLibrary
.
Note: this is distinct from user macros managed by the plugin subsystem that are declared using <user-macro> in plugin descriptors.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetByMacroName
(String macroName) Returns the metadata for the named macro if it is known to this provider.getByMacroNameAndId
(String macroName, String alternateId) Returns the metadata for the named macro if it is known to this provider.getData()
Returns a collection ofMacroMetadata
for use in the Macro Browser.Returns a collection ofMacroMetadata
for use in the Macro Browser.void
setUserMacroLibrary
(UserMacroLibrary userMacroLibrary)
-
Field Details
-
USER_MACRO_DUMMY_PLUGIN_KEY
- See Also:
-
-
Constructor Details
-
UserMacroMetadataProvider
public UserMacroMetadataProvider()
-
-
Method Details
-
getData
Description copied from interface:MacroMetadataProvider
Returns a collection ofMacroMetadata
for use in the Macro Browser. This collection need not necessarily be unique.- Specified by:
getData
in interfaceMacroMetadataProvider
-
getSummaries
Description copied from interface:MacroMetadataProvider
Returns a collection ofMacroMetadata
for use in the Macro Browser. This collection need not necessarily be unique. It's just the summaries.- Specified by:
getSummaries
in interfaceMacroMetadataProvider
-
getByMacroName
Description copied from interface:MacroMetadataProvider
Returns the metadata for the named macro if it is known to this provider. Otherwise returns null.- Specified by:
getByMacroName
in interfaceMacroMetadataProvider
- Parameters:
macroName
- the (simple, unfriendly) name of the macro.- Returns:
- the macro's metadata or null if it is not known to this provider.
-
getByMacroNameAndId
Description copied from interface:MacroMetadataProvider
Returns the metadata for the named macro if it is known to this provider. Otherwise returns null.- Specified by:
getByMacroNameAndId
in interfaceMacroMetadataProvider
- Parameters:
macroName
- the (simple, unfriendly) name of the macro.alternateId
- additional identification for macros where the macroName is not sufficient. If alternateId is null, then it should be ignored.- Returns:
- the macro's metadata or null if it is not known to this provider.
-
setUserMacroLibrary
-