com.atlassian.confluence.macro.browser
Class DefaultMacroBrowserManager

java.lang.Object
  extended by com.atlassian.confluence.macro.browser.DefaultMacroBrowserManager
All Implemented Interfaces:
MacroBrowserManager

public class DefaultMacroBrowserManager
extends java.lang.Object
implements MacroBrowserManager

Default MacroBrowserManager implementation. Retrieves macro metadata and "extra" details from plugin descriptors, a fallback file, and notification help.


Constructor Summary
DefaultMacroBrowserManager(MacroMetadataManager metadataManager)
           
 
Method Summary
 java.util.Set<MacroCategory> getMacroCategories()
          Returns the available macro categories.
 java.util.Set<MacroMetadata> getMacroMetadata()
          Returns the metadata for all macros in the system.
 java.util.Set<MacroMetadata> getMacroMetadata(java.util.Collection<java.lang.String> whitelist)
          Retrieves a set of macros that matches the whitelisted macro names.
 java.util.Set<MacroSummary> getMacroSummaries()
          Retrieve just the key, title, description and icon of all the macros
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultMacroBrowserManager

public DefaultMacroBrowserManager(MacroMetadataManager metadataManager)
Method Detail

getMacroCategories

public java.util.Set<MacroCategory> getMacroCategories()
Returns the available macro categories.

Specified by:
getMacroCategories in interface MacroBrowserManager

getMacroMetadata

public java.util.Set<MacroMetadata> getMacroMetadata()
Returns the metadata for all macros in the system. Macro metadata might be retrieved from the fallback XML file in Confluence if there's none in the macro itself.

Specified by:
getMacroMetadata in interface MacroBrowserManager

getMacroMetadata

public java.util.Set<MacroMetadata> getMacroMetadata(java.util.Collection<java.lang.String> whitelist)
Description copied from interface: MacroBrowserManager
Retrieves a set of macros that matches the whitelisted macro names.

Specified by:
getMacroMetadata in interface MacroBrowserManager
Returns:

getMacroSummaries

public java.util.Set<MacroSummary> getMacroSummaries()
Description copied from interface: MacroBrowserManager
Retrieve just the key, title, description and icon of all the macros

Specified by:
getMacroSummaries in interface MacroBrowserManager


Copyright © 2003-2014 Atlassian. All Rights Reserved.