public class DefaultMacroMetadataManager extends Object implements MacroMetadataManager
MacroMetadata
about the Macro
s in Confluence.Constructor and Description |
---|
DefaultMacroMetadataManager(com.atlassian.plugin.PluginAccessor pluginAccessor)
Deprecated.
since 5.9. Use
DefaultMacroMetadataManager(PluginAccessor, EventListenerRegistrar) instead. |
DefaultMacroMetadataManager(com.atlassian.plugin.PluginAccessor pluginAccessor,
com.atlassian.event.api.EventListenerRegistrar eventListenerRegistrar) |
Modifier and Type | Method and Description |
---|---|
void |
destroy() |
@NonNull Set<MacroMetadata> |
getAllMacroMetadata()
Retrieve all available metadata for macros in the system.
|
@NonNull Set<MacroSummary> |
getAllMacroSummaries()
Return summaries of all macros in the system.
|
MacroMetadata |
getMacroMetadataByName(String macroName)
Retrieve the metadata for a single macro.
|
MacroMetadata |
getMacroMetadataByNameAndId(String macroName,
String alternateId)
Retrieve the metadata for a single macro.
|
@NonNull Map<String,MacroParameter> |
getParameters(String macroName)
Retrieve the parameter information for a single macro.
|
@NonNull Map<String,MacroParameterType> |
getParameterTypes(String macroName)
Retrieve the parameter type information for a single macro.
|
void |
init() |
void |
onPluginFrameworkStartedEvent(AsyncPluginFrameworkStartedEvent event) |
@Deprecated public DefaultMacroMetadataManager(com.atlassian.plugin.PluginAccessor pluginAccessor)
DefaultMacroMetadataManager(PluginAccessor, EventListenerRegistrar)
instead.public DefaultMacroMetadataManager(com.atlassian.plugin.PluginAccessor pluginAccessor, com.atlassian.event.api.EventListenerRegistrar eventListenerRegistrar)
@PostConstruct public void init()
@PreDestroy public void destroy()
@EventListener public void onPluginFrameworkStartedEvent(AsyncPluginFrameworkStartedEvent event)
public @NonNull Set<MacroMetadata> getAllMacroMetadata()
MacroMetadataManager
getAllMacroMetadata
in interface MacroMetadataManager
public @NonNull Set<MacroSummary> getAllMacroSummaries()
MacroMetadataManager
getAllMacroSummaries
in interface MacroMetadataManager
public MacroMetadata getMacroMetadataByName(String macroName)
MacroMetadataManager
getMacroMetadataByName
in interface MacroMetadataManager
macroName
- the (simple, unfriendly) name of the macro, as will be returned by
MacroMetadata.getMacroName()
or MacroDefinition.getName()
.public MacroMetadata getMacroMetadataByNameAndId(String macroName, String alternateId)
MacroMetadataManager
getMacroMetadataByNameAndId
in interface MacroMetadataManager
macroName
- the (simple, unfriendly) name of the macro, as will be returned by
MacroMetadata.getMacroName()
or MacroDefinition.getName()
.alternateId
- additional identification for macros where the macroName is not sufficient. This will
be ignored, if null.public @NonNull Map<String,MacroParameterType> getParameterTypes(String macroName)
MacroMetadataManager
getParameterTypes
in interface MacroMetadataManager
macroName
- the name of the macro, as will be returned by MacroMetadata.getMacroName()
or
MacroDefinition.getName()
.public @NonNull Map<String,MacroParameter> getParameters(String macroName)
MacroMetadataManager
getParameters
in interface MacroMetadataManager
macroName
- the name of the macro, as will be returned by MacroMetadata.getMacroName()
or
MacroDefinition.getName()
.Copyright © 2003–2021 Atlassian. All rights reserved.