|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.confluence.macro.browser.DelegatingMacroMetadataProvider
public class DelegatingMacroMetadataProvider
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(java.lang.String macroName)
Returns matching metadata from the first of the providers that contains it. |
MacroMetadata |
getByMacroNameAndId(java.lang.String macroName,
java.lang.String alternateId)
Returns the metadata for the named macro if it is known to this provider. |
java.util.Collection<MacroMetadata> |
getData()
Returns a collection of MacroMetadata for use in the Macro Browser. |
java.util.Collection<MacroSummary> |
getSummaries()
Returns a collection of MacroMetadata for use in the Macro Browser. |
void |
setMacroMetadataProviders(java.util.List<MacroMetadataProvider> macroMetadataProviders)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DelegatingMacroMetadataProvider()
Method Detail |
---|
public java.util.Collection<MacroMetadata> getData()
MacroMetadataProvider
MacroMetadata
for use in the Macro Browser.
This collection need not necessarily be unique.
getData
in interface MacroMetadataProvider
public java.util.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(java.lang.String macroName)
getByMacroName
in interface MacroMetadataProvider
macroName
- the (simple, unfriendly) name of the macro.
public MacroMetadata getByMacroNameAndId(java.lang.String macroName, java.lang.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(java.util.List<MacroMetadataProvider> macroMetadataProviders)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |