Class UserMacroMetadataProvider
- java.lang.Object
- 
- com.atlassian.confluence.macro.browser.UserMacroMetadataProvider
 
- 
- All Implemented Interfaces:
- MacroMetadataProvider
 
 public class UserMacroMetadataProvider extends Object implements MacroMetadataProvider Serves metadata for user macros managed by theUserMacroLibrary.Note: this is distinct from user macros managed by the plugin subsystem that are declared using <user-macro> in plugin descriptors. 
- 
- 
Field SummaryFields Modifier and Type Field Description static StringUSER_MACRO_DUMMY_PLUGIN_KEY
 - 
Constructor SummaryConstructors Constructor Description UserMacroMetadataProvider()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description MacroMetadatagetByMacroName(String macroName)Returns the metadata for the named macro if it is known to this provider.MacroMetadatagetByMacroNameAndId(String macroName, String alternateId)Returns the metadata for the named macro if it is known to this provider.Collection<MacroMetadata>getData()Returns a collection ofMacroMetadatafor use in the Macro Browser.Collection<MacroSummary>getSummaries()Returns a collection ofMacroMetadatafor use in the Macro Browser.voidsetUserMacroLibrary(UserMacroLibrary userMacroLibrary)
 
- 
- 
- 
Field Detail- 
USER_MACRO_DUMMY_PLUGIN_KEYpublic static final String USER_MACRO_DUMMY_PLUGIN_KEY - See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
getDatapublic Collection<MacroMetadata> getData() Description copied from interface:MacroMetadataProviderReturns a collection ofMacroMetadatafor use in the Macro Browser. This collection need not necessarily be unique.- Specified by:
- getDatain interface- MacroMetadataProvider
 
 - 
getSummariespublic Collection<MacroSummary> getSummaries() Description copied from interface:MacroMetadataProviderReturns a collection ofMacroMetadatafor use in the Macro Browser. This collection need not necessarily be unique. It's just the summaries.- Specified by:
- getSummariesin interface- MacroMetadataProvider
 
 - 
getByMacroNamepublic MacroMetadata getByMacroName(String macroName) Description copied from interface:MacroMetadataProviderReturns the metadata for the named macro if it is known to this provider. Otherwise returns null.- Specified by:
- getByMacroNamein interface- MacroMetadataProvider
- Parameters:
- macroName- the (simple, unfriendly) name of the macro.
- Returns:
- the macro's metadata or null if it is not known to this provider.
 
 - 
getByMacroNameAndIdpublic MacroMetadata getByMacroNameAndId(String macroName, String alternateId) Description copied from interface:MacroMetadataProviderReturns the metadata for the named macro if it is known to this provider. Otherwise returns null.- Specified by:
- getByMacroNameAndIdin interface- MacroMetadataProvider
- 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.
 
 - 
setUserMacroLibrarypublic void setUserMacroLibrary(UserMacroLibrary userMacroLibrary) 
 
- 
 
-