com.atlassian.confluence.plugins.gadgets.metadata
Class GadgetsMacroMetadataProvider
java.lang.Object
com.atlassian.confluence.plugins.gadgets.metadata.GadgetsMacroMetadataProvider
- All Implemented Interfaces:
- MacroMetadataProvider
public class GadgetsMacroMetadataProvider
- extends java.lang.Object
- implements MacroMetadataProvider
Uses the installed gadgets to provide additional MacroMetadata to the Macro Browser.
This should ideally use the gadget directory, but this is currently an internal package (AG-1008)
so this information isn't available.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GadgetsMacroMetadataProvider
public GadgetsMacroMetadataProvider()
setGadgetStore
public void setGadgetStore(com.atlassian.gadgets.directory.spi.ExternalGadgetSpecStore gadgetStore)
setFeedStore
public void setFeedStore(com.atlassian.gadgets.directory.spi.SubscribedGadgetFeedStore feedStore)
setGadgetFeedReaderFactory
public void setGadgetFeedReaderFactory(com.atlassian.gadgets.feed.GadgetFeedReaderFactory gadgetFeedReaderFactory)
setGadgetSpecProvider
public void setGadgetSpecProvider(com.atlassian.gadgets.GadgetSpecProvider gadgetSpecProvider)
setGadgetSpecFactory
public void setGadgetSpecFactory(com.atlassian.gadgets.spec.GadgetSpecFactory gadgetSpecFactory)
setRequestContextBuilder
public void setRequestContextBuilder(RequestContextBuilder requestContextBuilder)
setResolver
public void setResolver(com.atlassian.sal.api.message.I18nResolver resolver)
getData
public java.util.Collection<MacroMetadata> getData()
- Description copied from interface:
MacroMetadataProvider
- Returns a collection of
MacroMetadata
for use in the Macro Browser.
This collection need not necessarily be unique.
- Specified by:
getData
in interface MacroMetadataProvider
getByMacroName
public MacroMetadata getByMacroName(java.lang.String macroName)
- Initial very inefficient implementation that iterates through the full getMetadata.
- Specified by:
getByMacroName
in interface MacroMetadataProvider
- Parameters:
macroName
- the (simple, unfriendly) name of the macro. Should not be null.
- Returns:
- the metadata for the named macro if it is a known gadget
Copyright © 2003-2013 Atlassian. All Rights Reserved.