public class NavBreadcrumbBuilderImpl extends Object implements NavBreadcrumbBuilder
NavBreadcrumbBuilderImpl
.Modifier and Type | Field and Description |
---|---|
static String |
BREADCRUMB_CONST_KEY_ELEM |
protected org.craftercms.commons.converters.Converter<SiteItem,NavItem> |
defaultItemConverter |
protected org.craftercms.core.processors.ItemProcessor |
processor |
protected SiteItemService |
siteItemService |
Constructor and Description |
---|
NavBreadcrumbBuilderImpl() |
Modifier and Type | Method and Description |
---|---|
protected String |
extractBreadcrumbUrl(String url,
String root) |
List<NavItem> |
getBreadcrumb(String url,
String root)
Returns the navigation items that form the breadcrumb for the specified store URL.
|
List<NavItem> |
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.
|
void |
setDefaultItemConverter(org.craftercms.commons.converters.Converter<SiteItem,NavItem> defaultItemConverter) |
void |
setProcessor(org.craftercms.core.processors.ItemProcessor processor) |
void |
setProcessors(List<org.craftercms.core.processors.ItemProcessor> processors) |
void |
setSiteItemService(SiteItemService siteItemService) |
public static final String BREADCRUMB_CONST_KEY_ELEM
protected SiteItemService siteItemService
protected org.craftercms.core.processors.ItemProcessor processor
public void setSiteItemService(SiteItemService siteItemService)
public void setProcessor(org.craftercms.core.processors.ItemProcessor processor)
public void setProcessors(List<org.craftercms.core.processors.ItemProcessor> processors)
public void setDefaultItemConverter(org.craftercms.commons.converters.Converter<SiteItem,NavItem> defaultItemConverter)
public List<NavItem> getBreadcrumb(String url, String root)
NavBreadcrumbBuilder
getBreadcrumb
in interface NavBreadcrumbBuilder
url
- the current URL used to build the breadcrumbroot
- the root URL, basically the starting point of the breadcrumbNavItem
s that represent the breadcrumbpublic List<NavItem> getBreadcrumb(String url, String root, org.craftercms.commons.converters.Converter<SiteItem,NavItem> itemConverter)
NavBreadcrumbBuilder
getBreadcrumb
in interface NavBreadcrumbBuilder
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 from SiteItem
s to the actual
NavItem
sNavItem
s that represent the breadcrumbCopyright © 2019 CrafterCMS. All rights reserved.