Class CategorySiteMapGenerator
java.lang.Object
org.broadleafcommerce.core.catalog.service.CategorySiteMapGenerator
- All Implemented Interfaces:
SiteMapGenerator
@Component("blCategorySiteMapGenerator")
public class CategorySiteMapGenerator
extends Object
implements SiteMapGenerator
Responsible for generating site map entries for Category.
- Author:
- Joshua Skorton (jskorton)
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected CategoryDaoprotected org.springframework.core.env.Environmentprotected static final org.apache.commons.logging.Logprotected int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddCategorySiteMapEntries(Category parentCategory, int currentDepth, CategorySiteMapGeneratorConfiguration categorySMGC, SiteMapBuilder siteMapBuilder) voidaddSiteMapEntries(SiteMapGeneratorConfiguration smgc, SiteMapBuilder siteMapBuilder) booleancanHandleSiteMapConfiguration(SiteMapGeneratorConfiguration siteMapGeneratorConfiguration) protected voidconstructImageURLs(SiteMapBuilder siteMapBuilder, SiteMapURLWrapper siteMapUrl, Category category) protected voidconstructSiteMapURLs(CategorySiteMapGeneratorConfiguration categorySMGC, SiteMapBuilder siteMapBuilder, Category category) protected DategenerateDate(Category category) protected StringgenerateUrl(SiteMapBuilder siteMapBuilder, Category category, int pageNumber) protected Stringprotected intprotected IntegergetPageCountForCategory(Category category) intvoidsetCategoryDao(CategoryDao categoryDao) voidsetRowLimit(int rowLimit)
-
Field Details
-
LOG
protected static final org.apache.commons.logging.Log LOG -
env
protected org.springframework.core.env.Environment env -
categoryDao
-
rowLimit
@Value("${category.site.map.generator.row.limit}") protected int rowLimit
-
-
Constructor Details
-
CategorySiteMapGenerator
public CategorySiteMapGenerator(org.springframework.core.env.Environment env)
-
-
Method Details
-
canHandleSiteMapConfiguration
public boolean canHandleSiteMapConfiguration(SiteMapGeneratorConfiguration siteMapGeneratorConfiguration) - Specified by:
canHandleSiteMapConfigurationin interfaceSiteMapGenerator
-
addSiteMapEntries
- Specified by:
addSiteMapEntriesin interfaceSiteMapGenerator
-
addCategorySiteMapEntries
protected void addCategorySiteMapEntries(Category parentCategory, int currentDepth, CategorySiteMapGeneratorConfiguration categorySMGC, SiteMapBuilder siteMapBuilder) -
constructSiteMapURLs
protected void constructSiteMapURLs(CategorySiteMapGeneratorConfiguration categorySMGC, SiteMapBuilder siteMapBuilder, Category category) -
constructImageURLs
protected void constructImageURLs(SiteMapBuilder siteMapBuilder, SiteMapURLWrapper siteMapUrl, Category category) -
getPageCountForCategory
-
generateUrl
-
generateDate
-
getCategoryDao
-
setCategoryDao
-
getRowLimit
public int getRowLimit() -
setRowLimit
public void setRowLimit(int rowLimit) -
getDefaultPageSize
protected int getDefaultPageSize() -
getCategoryPaginationParam
-