Interface NavigationItemService

All Known Implementing Classes:
NavigationItemServiceImpl

public interface NavigationItemService
Provides methods to retrieve NavigationItems.
Since:
v1.1.0
  • Method Details

    • getItemsInSection

      List<NavigationItem> getItemsInSection(String section, Map<String,Object> context)
      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 in DefaultWebFragmentContext are 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 section as NavigationItems.
    • 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 location as NavigationSection.