public class DelegatingMacroMetadataProvider extends Object implements MacroMetadataProvider
Constructor and Description |
---|
DelegatingMacroMetadataProvider() |
Modifier and Type | Method and Description |
---|---|
MacroMetadata |
getByMacroName(String macroName)
Returns matching metadata from the first of the providers that contains it.
|
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 |
setMacroMetadataProviders(List<MacroMetadataProvider> macroMetadataProviders) |
public Collection<MacroMetadata> getData()
MacroMetadataProvider
MacroMetadata
for use in the Macro Browser.
This collection need not necessarily be unique.getData
in interface MacroMetadataProvider
public Collection<MacroSummary> getSummaries()
MacroMetadataProvider
MacroMetadata
for use in the Macro Browser.
This collection need not necessarily be unique. It's just the summaries.getSummaries
in interface MacroMetadataProvider
public MacroMetadata getByMacroName(String macroName)
getByMacroName
in interface MacroMetadataProvider
macroName
- the (simple, unfriendly) name of the macro.public MacroMetadata getByMacroNameAndId(String macroName, String alternateId)
MacroMetadataProvider
getByMacroNameAndId
in interface MacroMetadataProvider
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.public void setMacroMetadataProviders(List<MacroMetadataProvider> macroMetadataProviders)
Copyright © 2003–2021 Atlassian. All rights reserved.