Class NavBreadcrumbBuilderImpl

    • Field Detail

      • processor

        protected org.craftercms.core.processors.ItemProcessor processor
      • defaultItemConverter

        protected org.craftercms.commons.converters.Converter<SiteItem,​NavItem> defaultItemConverter
    • Constructor Detail

      • NavBreadcrumbBuilderImpl

        public NavBreadcrumbBuilderImpl()
    • Method Detail

      • setSiteItemService

        public void setSiteItemService​(SiteItemService siteItemService)
      • setProcessor

        public void setProcessor​(org.craftercms.core.processors.ItemProcessor processor)
      • setProcessors

        public void setProcessors​(List<org.craftercms.core.processors.ItemProcessor> processors)
      • setDefaultItemConverter

        public void setDefaultItemConverter​(org.craftercms.commons.converters.Converter<SiteItem,​NavItem> defaultItemConverter)
      • getBreadcrumb

        public List<NavItem> getBreadcrumb​(String url,
                                           String root)
        Description copied from interface: NavBreadcrumbBuilder
        Returns the navigation items that form the breadcrumb for the specified store URL.
        Specified by:
        getBreadcrumb in interface NavBreadcrumbBuilder
        Parameters:
        url - the current URL used to build the breadcrumb
        root - the root URL, basically the starting point of the breadcrumb
        Returns:
        the list of NavItems that represent the breadcrumb
      • getBreadcrumb

        public List<NavItem> getBreadcrumb​(String url,
                                           String root,
                                           org.craftercms.commons.converters.Converter<SiteItem,​NavItem> itemConverter)
        Description copied from interface: NavBreadcrumbBuilder
        Returns the navigation items that form the breadcrumb for the specified store URL.
        Specified by:
        getBreadcrumb in interface NavBreadcrumbBuilder
        Parameters:
        url - the current URL used to build the breadcrumb
        root - the root URL, basically the starting point of the breadcrumb
        itemConverter - the converter that should be used to convert from SiteItems to the actual NavItems
        Returns:
        the list of NavItems that represent the breadcrumb
      • extractBreadcrumbUrl

        protected String extractBreadcrumbUrl​(String url,
                                              String root)