com.atlassian.confluence.macro.browser
Interface MacroMetadataProvider

All Known Implementing Classes:
DefaultMacroMetadataProvider, DelegatingMacroMetadataProvider, GadgetsMacroMetadataProvider, UserMacroMetadataProvider

public interface MacroMetadataProvider

Implementations of this class will be used by the MacroBrowserManager to provide additional MacroMetadata.


Method Summary
 MacroMetadata getByMacroName(String macroName)
          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.
 

Method Detail

getData

Collection<MacroMetadata> getData()
Returns a collection of MacroMetadata for use in the Macro Browser. This collection need not necessarily be unique.


getByMacroName

MacroMetadata getByMacroName(String macroName)
Returns the metadata for the named macro if it is known to this provider. Otherwise returns null.

Parameters:
macroName - the (simple, unfriendly) name of the macro.
Returns:
the macro's metadata or null if it is not known to this provider.
Since:
4.0


Copyright © 2003-2011 Atlassian. All Rights Reserved.