Interface NavigationItemService
- All Known Implementing Classes:
NavigationItemServiceImpl
public interface NavigationItemService
Provides methods to retrieve
NavigationItems.- Since:
- v1.1.0
-
Method Summary
Modifier and TypeMethodDescriptiongetItemsInSection(String section, Map<String, Object> context) Retrieve items from web items in a section.getSectionsForLocation(String location, Map<String, Object> context) Retrieve sections from the given context.
-
Method Details
-
getItemsInSection
Retrieve items from web items in a section. If the section is an Atlassian Connect module complete key, the plugin key and:will be stripped off, to keep clients from needing to know this implementation detail when providing child items. Values inDefaultWebFragmentContextare also provided to web items.- Parameters:
section- The section to retrieve items from.context- The context to pass to the web items.- Returns:
- The web items in
sectionasNavigationItems.
-
getSectionsForLocation
@Nonnull List<NavigationSection> getSectionsForLocation(String location, Map<String, Object> context) Retrieve sections from the given context. Items for the retrieved sections will also be accessible- Parameters:
location- The location to retrieve section from.context- The context to retrieve the sections.- Returns:
- The web sections for
locationas NavigationSection.
-