|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.confluence.macro.browser.UserMacroMetadataProvider
public class UserMacroMetadataProvider
Serves metadata for user macros managed by the UserMacroLibrary.
Note: this is distinct from user macros managed by the plugin subsystem that are declared using <user-macro> in plugin descriptors.
| Field Summary | |
|---|---|
static java.lang.String |
USER_MACRO_DUMMY_PLUGIN_KEY
|
| Constructor Summary | |
|---|---|
UserMacroMetadataProvider()
|
|
| Method Summary | |
|---|---|
MacroMetadata |
getByMacroName(java.lang.String macroName)
Returns the metadata for the named macro if it is known to this provider. |
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 |
setUserMacroLibrary(UserMacroLibrary userMacroLibrary)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String USER_MACRO_DUMMY_PLUGIN_KEY
| Constructor Detail |
|---|
public UserMacroMetadataProvider()
| Method Detail |
|---|
public java.util.Collection<MacroMetadata> getData()
MacroMetadataProviderMacroMetadata for use in the Macro Browser.
This collection need not necessarily be unique.
getData in interface MacroMetadataProviderpublic java.util.Collection<MacroSummary> getSummaries()
MacroMetadataProviderMacroMetadata for use in the Macro Browser.
This collection need not necessarily be unique. It's just the summaries.
getSummaries in interface MacroMetadataProviderpublic MacroMetadata getByMacroName(java.lang.String macroName)
MacroMetadataProvider
getByMacroName in interface MacroMetadataProvidermacroName - the (simple, unfriendly) name of the macro.
public MacroMetadata getByMacroNameAndId(java.lang.String macroName,
java.lang.String alternateId)
MacroMetadataProvider
getByMacroNameAndId in interface MacroMetadataProvidermacroName - 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 setUserMacroLibrary(UserMacroLibrary userMacroLibrary)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||