public class UserMacroMetadataProvider extends Object implements MacroMetadataProvider
UserMacroLibrary.
Note: this is distinct from user macros managed by the plugin subsystem that are declared using <user-macro> in plugin descriptors.
| Modifier and Type | Field and Description |
|---|---|
static String |
USER_MACRO_DUMMY_PLUGIN_KEY |
| Constructor and Description |
|---|
UserMacroMetadataProvider() |
| Modifier and Type | Method and Description |
|---|---|
MacroMetadata |
getByMacroName(String macroName)
Returns the metadata for the named macro if it is known to this provider.
|
MacroMetadata |
getByMacroNameAndId(String macroName,
String alternateId)
Returns the metadata for the named macro if it is known to this provider.
|
Collection<MacroMetadata> |
getData()
Returns a collection of
MacroMetadata for use in the Macro Browser. |
Collection<MacroSummary> |
getSummaries()
Returns a collection of
MacroMetadata for use in the Macro Browser. |
void |
setUserMacroLibrary(UserMacroLibrary userMacroLibrary) |
public static final String USER_MACRO_DUMMY_PLUGIN_KEY
public Collection<MacroMetadata> getData()
MacroMetadataProviderMacroMetadata for use in the Macro Browser.
This collection need not necessarily be unique.getData in interface MacroMetadataProviderpublic Collection<MacroSummary> getSummaries()
MacroMetadataProviderMacroMetadata for use in the Macro Browser.
This collection need not necessarily be unique. It's just the summaries.getSummaries in interface MacroMetadataProviderpublic MacroMetadata getByMacroName(String macroName)
MacroMetadataProvidergetByMacroName in interface MacroMetadataProvidermacroName - the (simple, unfriendly) name of the macro.public MacroMetadata getByMacroNameAndId(String macroName, String alternateId)
MacroMetadataProvidergetByMacroNameAndId in interface MacroMetadataProvidermacroName - 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.public void setUserMacroLibrary(UserMacroLibrary userMacroLibrary)
Copyright © 2003–2018 Atlassian. All rights reserved.