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 TypeMethodDescriptionvoid
addSiteMapEntries
(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.boolean
canHandleSiteMapConfiguration
(SiteMapGeneratorConfiguration siteMapGeneratorConfiguration) Returns true if this SiteMapGenerator is able to process the passed in siteMapGeneratorConfiguration.protected Date
generateDate
(Page page) protected String
generateUri
(SiteMapBuilder smb, Page page) int
void
setPageDao
(PageDao pageDao) void
setRowLimit
(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:SiteMapGenerator
Returns true if this SiteMapGenerator is able to process the passed in siteMapGeneratorConfiguration.- Specified by:
canHandleSiteMapConfiguration
in interfaceSiteMapGenerator
- Returns:
-
addSiteMapEntries
Description copied from interface:SiteMapGenerator
Typically, the generator will loop through and build a list of URLs to add to the sitemap by calling methods on the SiteMapBuilder.- Specified by:
addSiteMapEntries
in interfaceSiteMapGenerator
-
generateUri
-
generateDate
-
getPageDao
-
setPageDao
-
getRowLimit
public int getRowLimit() -
setRowLimit
public void setRowLimit(int rowLimit)
-