public interface DynamicWebInterfaceManager extends WebInterfaceManager
A dynamic web interface manager extends the existing WebInterfaceManager
interface with methods to retrieve items and sections that are created by WebItemProviders and WebSectionProviders
as well as static items and sections returned by the existing WebInterfaceManager.
Host applications and plugins should use these methods in favour of the WebInterfaceManager to retrieve pluggable items and sections since it allows for greater flexibility when writing plugins.
| Modifier and Type | Method and Description |
|---|---|
Iterable<WebItem> |
getDisplayableWebItems(String section,
Map<String,Object> context)
Same as
getWebItems(String, java.util.Map) but apply conditions for static web-items using the context
provided. |
Iterable<WebSection> |
getDisplayableWebSections(String location,
Map<String,Object> context)
Same as
getWebSections(String, java.util.Map) but apply conditions for static web-sections using the
context provided. |
Iterable<WebItem> |
getWebItems(String section,
Map<String,Object> context)
Returns a collection of web-items for the provided section.
|
Iterable<WebSection> |
getWebSections(String location,
Map<String,Object> context)
Returns a collection of web-sections for the provided location.
|
getDisplayableItems, getDisplayableSections, getDisplayableWebPanelDescriptors, getDisplayableWebPanels, getItems, getSections, getWebFragmentHelper, getWebPanelDescriptors, getWebPanels, hasSectionsForLocation, refreshIterable<WebItem> getWebItems(String section, Map<String,Object> context)
WebItemProviders. For static items, no conditions will be applied.
At a minimum, context should provide a "request" HttpServletRequest object to aid with
rendering of links including contextpath.
section - the section in which web-items should be locatedcontext - context to render urls, tooltips etcIterable<WebItem> getDisplayableWebItems(String section, Map<String,Object> context)
getWebItems(String, java.util.Map) but apply conditions for static web-items using the context
provided.
At a minimum, context should provide a "request" HttpServletRequest object to aid with
rendering of links including contextpath.
Iterable<WebSection> getWebSections(String location, Map<String,Object> context)
WebSectionProviders. For static sections, no conditions will be applied.
At a minimum, context should provide a "request" HttpServletRequest object to aid with
rendering of links including contextpath.
location - the location in which web-sections should be locatedcontext - context to render urls, tooltips etcIterable<WebSection> getDisplayableWebSections(String location, Map<String,Object> context)
getWebSections(String, java.util.Map) but apply conditions for static web-sections using the
context provided.
At a minimum, context should provide a "request" HttpServletRequest object to aid with
rendering of links including contextpath.
Copyright © 2018 Atlassian. All rights reserved.