Class PageSiteMapGenerator
java.lang.Object
org.broadleafcommerce.cms.page.service.PageSiteMapGenerator
- All Implemented Interfaces:
SiteMapGenerator
@Component("blPageSiteMapGenerator")
public class PageSiteMapGenerator
extends Object
implements SiteMapGenerator
Responsible for generating site map entries for Page.
- Author:
- Joshua Skorton (jskorton)
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddSiteMapEntries(SiteMapGeneratorConfiguration smgc, SiteMapBuilder siteMapBuilder) Typically, the generator will loop through and build a list of URLs to add to the sitemap by calling methods on the SiteMapBuilder.booleancanHandleSiteMapConfiguration(SiteMapGeneratorConfiguration siteMapGeneratorConfiguration) Returns true if this SiteMapGenerator is able to process the passed in siteMapGeneratorConfiguration.protected DategenerateDate(Page page) protected StringgenerateUri(SiteMapBuilder smb, Page page) intvoidsetPageDao(PageDao pageDao) voidsetRowLimit(int rowLimit)
-
Field Details
-
pageDao
-
rowLimit
@Value("${page.site.map.generator.row.limit}") protected int rowLimit
-
-
Constructor Details
-
PageSiteMapGenerator
public PageSiteMapGenerator()
-
-
Method Details
-
canHandleSiteMapConfiguration
public boolean canHandleSiteMapConfiguration(SiteMapGeneratorConfiguration siteMapGeneratorConfiguration) Description copied from interface:SiteMapGeneratorReturns true if this SiteMapGenerator is able to process the passed in siteMapGeneratorConfiguration.- Specified by:
canHandleSiteMapConfigurationin interfaceSiteMapGenerator- Returns:
-
addSiteMapEntries
Description copied from interface:SiteMapGeneratorTypically, the generator will loop through and build a list of URLs to add to the sitemap by calling methods on the SiteMapBuilder.- Specified by:
addSiteMapEntriesin interfaceSiteMapGenerator
-
generateUri
-
generateDate
-
getPageDao
-
setPageDao
-
getRowLimit
public int getRowLimit() -
setRowLimit
public void setRowLimit(int rowLimit)
-