@Component(value="blPageSiteMapGenerator") public class PageSiteMapGenerator extends Object implements SiteMapGenerator
Modifier and Type | Field and Description |
---|---|
protected PageDao |
pageDao |
protected int |
rowLimit |
Constructor and Description |
---|
PageSiteMapGenerator() |
Modifier and Type | Method and Description |
---|---|
void |
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) |
PageDao |
getPageDao() |
int |
getRowLimit() |
void |
setPageDao(PageDao pageDao) |
void |
setRowLimit(int rowLimit) |
protected PageDao pageDao
@Value(value="${page.site.map.generator.row.limit}") protected int rowLimit
public boolean canHandleSiteMapConfiguration(SiteMapGeneratorConfiguration siteMapGeneratorConfiguration)
SiteMapGenerator
canHandleSiteMapConfiguration
in interface SiteMapGenerator
public void addSiteMapEntries(SiteMapGeneratorConfiguration smgc, SiteMapBuilder siteMapBuilder)
SiteMapGenerator
addSiteMapEntries
in interface SiteMapGenerator
protected String generateUri(SiteMapBuilder smb, Page page)
public PageDao getPageDao()
public void setPageDao(PageDao pageDao)
public int getRowLimit()
public void setRowLimit(int rowLimit)
Copyright © 2022. All rights reserved.