Class SeoDefaultPropertyServiceImpl
java.lang.Object
org.broadleafcommerce.core.web.seo.SeoDefaultPropertyServiceImpl
- All Implemented Interfaces:
SeoDefaultPropertyService
@Service("blSeoDefaultPropertyService")
@ConditionalOnTemplating
public class SeoDefaultPropertyServiceImpl
extends Object
implements SeoDefaultPropertyService
- Author:
- Chris Kittrell (ckittrell)
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected CategoryDaoprotected org.springframework.core.env.Environmentprotected SearchFacetDTOServiceprotected static final org.apache.commons.logging.Logprotected SearchServiceprotected BaseUrlResolver -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetCanonicalUrl(Category category) protected StringgetCanonicalUrl(Category category, int pageNumber) getCanonicalUrl(Product product) protected StringgetCanonicalUrl(Product product, int pageNumber) protected Stringprotected Integerprotected IntegergetDescription(PageDTO page) protected IntegergetPageCount(Category category) protected intgetPaginationNextUrl(Category category) getPaginationNextUrl(Product product) getPaginationPrevUrl(Category category) getPaginationPrevUrl(Product product) getProductDescriptionPattern(Product product) protected StringgetProductTitlePattern(Product product) protected booleanisValidNextPageNumber(Category category, Integer pageNumber) protected booleanisValidNextPageNumber(Product product, Integer pageNumber) This method is intended to be overridden to also determine whether or not the is under the total number of pages for the given .protected booleanisValidPrevPageNumber(Integer pageNumber) protected booleanprotected booleanshouldIncludeCategoryPagination(int pageNumber) protected booleanshouldIncludeProductPagination(int pageNumber)
-
Field Details
-
LOG
protected static final org.apache.commons.logging.Log LOG -
env
@Autowired protected org.springframework.core.env.Environment env -
urlResolver
-
facetService
-
searchService
-
categoryDao
-
-
Constructor Details
-
SeoDefaultPropertyServiceImpl
public SeoDefaultPropertyServiceImpl()
-
-
Method Details
-
getProductTitlePattern
- Specified by:
getProductTitlePatternin interfaceSeoDefaultPropertyService
-
getCategoryTitlePattern
- Specified by:
getCategoryTitlePatternin interfaceSeoDefaultPropertyService
-
getTitle
- Specified by:
getTitlein interfaceSeoDefaultPropertyService
-
getType
- Specified by:
getTypein interfaceSeoDefaultPropertyService
-
getType
- Specified by:
getTypein interfaceSeoDefaultPropertyService
-
getType
- Specified by:
getTypein interfaceSeoDefaultPropertyService
-
getProductDescriptionPattern
- Specified by:
getProductDescriptionPatternin interfaceSeoDefaultPropertyService
-
getCategoryDescriptionPattern
- Specified by:
getCategoryDescriptionPatternin interfaceSeoDefaultPropertyService
-
getDescription
- Specified by:
getDescriptionin interfaceSeoDefaultPropertyService
-
getUrl
- Specified by:
getUrlin interfaceSeoDefaultPropertyService
-
getUrl
- Specified by:
getUrlin interfaceSeoDefaultPropertyService
-
getUrl
- Specified by:
getUrlin interfaceSeoDefaultPropertyService
-
getImage
- Specified by:
getImagein interfaceSeoDefaultPropertyService
-
getImage
- Specified by:
getImagein interfaceSeoDefaultPropertyService
-
getImage
- Specified by:
getImagein interfaceSeoDefaultPropertyService
-
getCanonicalUrl
- Specified by:
getCanonicalUrlin interfaceSeoDefaultPropertyService
-
getPaginationPrevUrl
- Specified by:
getPaginationPrevUrlin interfaceSeoDefaultPropertyService
-
getPaginationNextUrl
- Specified by:
getPaginationNextUrlin interfaceSeoDefaultPropertyService
-
shouldIncludeProductPagination
protected boolean shouldIncludeProductPagination(int pageNumber) -
isValidPrevPageNumber
-
isValidNextPageNumber
This method is intended to be overridden to also determine whether or not the is under the total number of pages for the given . -
getCanonicalUrl
-
getCurrentProductPageNumber
-
getCanonicalUrl
- Specified by:
getCanonicalUrlin interfaceSeoDefaultPropertyService
-
getPaginationPrevUrl
- Specified by:
getPaginationPrevUrlin interfaceSeoDefaultPropertyService
-
getPaginationNextUrl
- Specified by:
getPaginationNextUrlin interfaceSeoDefaultPropertyService
-
shouldIncludeCategoryPagination
protected boolean shouldIncludeCategoryPagination(int pageNumber) -
isValidNextPageNumber
-
getPageCount
-
getCanonicalUrl
-
getCurrentCategoryPageNumber
-
productPaginationIsEnabled
protected boolean productPaginationIsEnabled() -
getProductPaginationParam
-
getCategoryPaginationParam
-
getPageSize
protected int getPageSize()
-