com.atlassian.confluence.macro.browser
Class DefaultMacroMetadataManager

java.lang.Object
  extended by com.atlassian.confluence.macro.browser.DefaultMacroMetadataManager
All Implemented Interfaces:
MacroMetadataManager

public class DefaultMacroMetadataManager
extends java.lang.Object
implements MacroMetadataManager

Manager providing MacroMetadata about the Macros in Confluence.


Constructor Summary
DefaultMacroMetadataManager(com.atlassian.plugin.PluginAccessor pluginAccessor)
           
 
Method Summary
 java.util.Set<MacroMetadata> getAllMacroMetadata()
          Retrieve all available metadata for macros in the system.
 java.util.Set<MacroSummary> getAllMacroSummaries()
          Return summaries of all macros in the system.
 MacroMetadata getMacroMetadataByName(java.lang.String macroName)
          Retrieve the metadata for a single macro.
 MacroMetadata getMacroMetadataByNameAndId(java.lang.String macroName, java.lang.String alternateId)
          Retrieve the metadata for a single macro.
 java.util.Map<java.lang.String,MacroParameter> getParameters(java.lang.String macroName)
          Retrieve the parameter information for a single macro.
 java.util.Map<java.lang.String,MacroParameterType> getParameterTypes(java.lang.String macroName)
          Retrieve the parameter type information for a single macro.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultMacroMetadataManager

public DefaultMacroMetadataManager(com.atlassian.plugin.PluginAccessor pluginAccessor)
Method Detail

getAllMacroMetadata

public java.util.Set<MacroMetadata> getAllMacroMetadata()
Description copied from interface: MacroMetadataManager
Retrieve all available metadata for macros in the system.

Specified by:
getAllMacroMetadata in interface MacroMetadataManager

getAllMacroSummaries

public java.util.Set<MacroSummary> getAllMacroSummaries()
Description copied from interface: MacroMetadataManager
Return summaries of all macros in the system.

Specified by:
getAllMacroSummaries in interface MacroMetadataManager

getMacroMetadataByName

public MacroMetadata getMacroMetadataByName(java.lang.String macroName)
Description copied from interface: MacroMetadataManager
Retrieve the metadata for a single macro. This may not be very efficient internally.

Specified by:
getMacroMetadataByName in interface MacroMetadataManager
Parameters:
macroName - the (simple, unfriendly) name of the macro, as will be returned by MacroMetadata.getMacroName() or MacroDefinition.getName().

getMacroMetadataByNameAndId

public MacroMetadata getMacroMetadataByNameAndId(java.lang.String macroName,
                                                 java.lang.String alternateId)
Description copied from interface: MacroMetadataManager
Retrieve the metadata for a single macro. This may not be very efficient internally.

Specified by:
getMacroMetadataByNameAndId in interface MacroMetadataManager
Parameters:
macroName - the (simple, unfriendly) name of the macro, as will be returned by MacroMetadata.getMacroName() or MacroDefinition.getName().
alternateId - additional identification for macros where the macroName is not sufficient. This will be ignored, if null.

getParameterTypes

public java.util.Map<java.lang.String,MacroParameterType> getParameterTypes(java.lang.String macroName)
Description copied from interface: MacroMetadataManager
Retrieve the parameter type information for a single macro.

Specified by:
getParameterTypes in interface MacroMetadataManager
Parameters:
macroName - the name of the macro, as will be returned by MacroMetadata.getMacroName() or MacroDefinition.getName().
Returns:
A map consisting of the parameter name and its corresponding type.

getParameters

public java.util.Map<java.lang.String,MacroParameter> getParameters(java.lang.String macroName)
Description copied from interface: MacroMetadataManager
Retrieve the parameter information for a single macro.

Specified by:
getParameters in interface MacroMetadataManager
Parameters:
macroName - the name of the macro, as will be returned by MacroMetadata.getMacroName() or MacroDefinition.getName().
Returns:
A map consisting of the parameter name and its corresponding metadata.


Copyright © 2003-2014 Atlassian. All Rights Reserved.