com.atlassian.confluence.macro.browser
Class DelegatingMacroMetadataProvider

java.lang.Object
  extended by com.atlassian.confluence.macro.browser.DelegatingMacroMetadataProvider
All Implemented Interfaces:
MacroMetadataProvider

public class DelegatingMacroMetadataProvider
extends Object
implements MacroMetadataProvider

Provides metadata about macros for use in the macro browser. This includes all xhtml macros and v2 that can be automatically converted to xhtml (where there is not an xhtml version).


Constructor Summary
DelegatingMacroMetadataProvider()
           
 
Method Summary
 MacroMetadata getByMacroName(String macroName)
          Returns matching metadata from the first of the providers that contains it.
 Collection<MacroMetadata> getData()
          Returns a collection of MacroMetadata for use in the Macro Browser.
 void setMacroMetadataProviders(List<MacroMetadataProvider> macroMetadataProviders)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DelegatingMacroMetadataProvider

public DelegatingMacroMetadataProvider()
Method Detail

getData

public 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(String macroName)
Returns matching metadata from the first of the providers that contains it.

Specified by:
getByMacroName in interface MacroMetadataProvider
Parameters:
macroName - the (simple, unfriendly) name of the macro.
Returns:
the macro's metadata or null if it is not known to this provider.

setMacroMetadataProviders

public void setMacroMetadataProviders(List<MacroMetadataProvider> macroMetadataProviders)


Copyright © 2003-2013 Atlassian. All Rights Reserved.