@Component(value="blCategorySiteMapGenerator") public class CategorySiteMapGenerator extends Object implements SiteMapGenerator
| Modifier and Type | Field and Description |
|---|---|
protected CategoryDao |
categoryDao |
protected static org.apache.commons.logging.Log |
LOG |
protected int |
rowLimit |
| Constructor and Description |
|---|
CategorySiteMapGenerator() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addCategorySiteMapEntries(Category parentCategory,
int currentDepth,
CategorySiteMapGeneratorConfiguration categorySMGC,
SiteMapBuilder siteMapBuilder) |
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 void |
constructSiteMapURL(CategorySiteMapGeneratorConfiguration categorySMGC,
SiteMapBuilder siteMapBuilder,
Category category) |
protected Date |
generateDate(Category category) |
protected String |
generateUri(SiteMapBuilder siteMapBuilder,
Category category) |
CategoryDao |
getCategoryDao() |
int |
getRowLimit() |
void |
setCategoryDao(CategoryDao categoryDao) |
void |
setRowLimit(int rowLimit) |
protected static final org.apache.commons.logging.Log LOG
protected CategoryDao categoryDao
@Value(value="${category.site.map.generator.row.limit}")
protected int rowLimit
public boolean canHandleSiteMapConfiguration(SiteMapGeneratorConfiguration siteMapGeneratorConfiguration)
SiteMapGeneratorcanHandleSiteMapConfiguration in interface SiteMapGeneratorpublic void addSiteMapEntries(SiteMapGeneratorConfiguration smgc, SiteMapBuilder siteMapBuilder)
SiteMapGeneratoraddSiteMapEntries in interface SiteMapGeneratorprotected void addCategorySiteMapEntries(Category parentCategory, int currentDepth, CategorySiteMapGeneratorConfiguration categorySMGC, SiteMapBuilder siteMapBuilder)
protected void constructSiteMapURL(CategorySiteMapGeneratorConfiguration categorySMGC, SiteMapBuilder siteMapBuilder, Category category)
protected String generateUri(SiteMapBuilder siteMapBuilder, Category category)
public CategoryDao getCategoryDao()
public void setCategoryDao(CategoryDao categoryDao)
public int getRowLimit()
public void setRowLimit(int rowLimit)
Copyright © 2015. All rights reserved.