Class NavBreadcrumbBuilderImpl
java.lang.Object
org.craftercms.engine.navigation.impl.NavBreadcrumbBuilderImpl
- All Implemented Interfaces:
NavBreadcrumbBuilder
Default implementation of
NavBreadcrumbBuilderImpl.- Author:
- avasquez
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringprotected org.craftercms.core.processors.ItemProcessorprotected SiteItemService -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringextractBreadcrumbUrl(String url, String root) getBreadcrumb(String url, String root) Returns the navigation items that form the breadcrumb for the specified store URL.getBreadcrumb(String url, String root, org.craftercms.commons.converters.Converter<SiteItem, NavItem> itemConverter) Returns the navigation items that form the breadcrumb for the specified store URL.voidsetDefaultItemConverter(org.craftercms.commons.converters.Converter<SiteItem, NavItem> defaultItemConverter) voidsetProcessor(org.craftercms.core.processors.ItemProcessor processor) voidsetProcessors(List<org.craftercms.core.processors.ItemProcessor> processors)
-
Field Details
-
BREADCRUMB_CONST_KEY_ELEM
- See Also:
-
siteItemService
-
processor
protected org.craftercms.core.processors.ItemProcessor processor -
defaultItemConverter
-
-
Constructor Details
-
NavBreadcrumbBuilderImpl
-
-
Method Details
-
setProcessor
public void setProcessor(org.craftercms.core.processors.ItemProcessor processor) -
setProcessors
-
setDefaultItemConverter
-
getBreadcrumb
Description copied from interface:NavBreadcrumbBuilderReturns the navigation items that form the breadcrumb for the specified store URL.- Specified by:
getBreadcrumbin interfaceNavBreadcrumbBuilder- Parameters:
url- the current URL used to build the breadcrumbroot- 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:NavBreadcrumbBuilderReturns the navigation items that form the breadcrumb for the specified store URL.- Specified by:
getBreadcrumbin interfaceNavBreadcrumbBuilder- Parameters:
url- the current URL used to build the breadcrumbroot- the root URL, basically the starting point of the breadcrumbitemConverter- the converter that should be used to convert fromSiteItems to the actualNavItems- Returns:
- the list of
NavItems that represent the breadcrumb
-
extractBreadcrumbUrl
-