com.atlassian.plugin.web
Class DefaultWebInterfaceManager

java.lang.Object
  extended by com.atlassian.plugin.web.DefaultWebInterfaceManager
All Implemented Interfaces:
WebInterfaceManager

public class DefaultWebInterfaceManager
extends java.lang.Object
implements WebInterfaceManager

Stores and manages flexible web interface sections available in the system.


Field Summary
static WeightedDescriptorComparator WEIGHTED_DESCRIPTOR_COMPARATOR
           
 
Constructor Summary
DefaultWebInterfaceManager()
           
DefaultWebInterfaceManager(PluginManager pluginManager, WebFragmentHelper webFragmentHelper)
           
 
Method Summary
 java.util.List<WebItemModuleDescriptor> getDisplayableItems(java.lang.String section, java.util.Map<java.lang.String,java.lang.Object> context)
           
 java.util.List<WebSectionModuleDescriptor> getDisplayableSections(java.lang.String location, java.util.Map<java.lang.String,java.lang.Object> context)
           
 java.util.List<WebItemModuleDescriptor> getItems(java.lang.String section)
           
 java.util.List<WebSectionModuleDescriptor> getSections(java.lang.String location)
           
 WebFragmentHelper getWebFragmentHelper()
           
 boolean hasSectionsForLocation(java.lang.String location)
           
 void refresh()
          Refresh the contents of the web interface manager.
 void setPluginManager(PluginManager pluginManager)
           
 void setWebFragmentHelper(WebFragmentHelper webFragmentHelper)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

WEIGHTED_DESCRIPTOR_COMPARATOR

public static final WeightedDescriptorComparator WEIGHTED_DESCRIPTOR_COMPARATOR
Constructor Detail

DefaultWebInterfaceManager

public DefaultWebInterfaceManager()

DefaultWebInterfaceManager

public DefaultWebInterfaceManager(PluginManager pluginManager,
                                  WebFragmentHelper webFragmentHelper)
Method Detail

hasSectionsForLocation

public boolean hasSectionsForLocation(java.lang.String location)
Specified by:
hasSectionsForLocation in interface WebInterfaceManager
Returns:
True if there are any sections for the given location.

getSections

public java.util.List<WebSectionModuleDescriptor> getSections(java.lang.String location)
Specified by:
getSections in interface WebInterfaceManager
Returns:
A list of all WebSectionModuleDescriptors for the given location.

getDisplayableSections

public java.util.List<WebSectionModuleDescriptor> getDisplayableSections(java.lang.String location,
                                                                         java.util.Map<java.lang.String,java.lang.Object> context)
Specified by:
getDisplayableSections in interface WebInterfaceManager
Returns:
A list of all AbstractWebFragmentModuleDescriptor viewable in a given context in the given location.

getItems

public java.util.List<WebItemModuleDescriptor> getItems(java.lang.String section)
Specified by:
getItems in interface WebInterfaceManager
Returns:
A list of all WebItemModuleDescriptors for the given section.

getDisplayableItems

public java.util.List<WebItemModuleDescriptor> getDisplayableItems(java.lang.String section,
                                                                   java.util.Map<java.lang.String,java.lang.Object> context)
Specified by:
getDisplayableItems in interface WebInterfaceManager
Returns:
A list of all AbstractWebFragmentModuleDescriptor viewable in a given context in the given section.

refresh

public void refresh()
Description copied from interface: WebInterfaceManager
Refresh the contents of the web interface manager.

Specified by:
refresh in interface WebInterfaceManager

setPluginManager

public void setPluginManager(PluginManager pluginManager)

setWebFragmentHelper

public void setWebFragmentHelper(WebFragmentHelper webFragmentHelper)

getWebFragmentHelper

public WebFragmentHelper getWebFragmentHelper()
Specified by:
getWebFragmentHelper in interface WebInterfaceManager
Returns:
The web fragment helper for this implementation.


Copyright © 2008 Atlassian Pty Ltd. All Rights Reserved.