@Service(value="blSeoDefaultPropertyService") @ConditionalOnTemplating public class SeoDefaultPropertyServiceImpl extends Object implements SeoDefaultPropertyService
Modifier and Type | Field and Description |
---|---|
protected org.springframework.core.env.Environment |
env |
protected SearchFacetDTOService |
facetService |
protected static org.apache.commons.logging.Log |
LOG |
protected SearchService |
searchService |
protected BaseUrlResolver |
urlResolver |
Constructor and Description |
---|
SeoDefaultPropertyServiceImpl() |
protected static final org.apache.commons.logging.Log LOG
@Autowired protected org.springframework.core.env.Environment env
protected BaseUrlResolver urlResolver
protected SearchFacetDTOService facetService
protected SearchService searchService
public String getProductTitlePattern(Product product)
getProductTitlePattern
in interface SeoDefaultPropertyService
public String getCategoryTitlePattern()
getCategoryTitlePattern
in interface SeoDefaultPropertyService
public String getTitle(PageDTO page)
getTitle
in interface SeoDefaultPropertyService
public String getType(Product product)
getType
in interface SeoDefaultPropertyService
public String getType(Category category)
getType
in interface SeoDefaultPropertyService
public String getType(PageDTO page)
getType
in interface SeoDefaultPropertyService
public String getProductDescriptionPattern(Product product)
getProductDescriptionPattern
in interface SeoDefaultPropertyService
public String getCategoryDescriptionPattern()
getCategoryDescriptionPattern
in interface SeoDefaultPropertyService
public String getDescription(PageDTO page)
getDescription
in interface SeoDefaultPropertyService
public String getUrl(Product product)
getUrl
in interface SeoDefaultPropertyService
public String getUrl(Category category)
getUrl
in interface SeoDefaultPropertyService
public String getUrl(PageDTO page)
getUrl
in interface SeoDefaultPropertyService
public String getImage(Product product)
getImage
in interface SeoDefaultPropertyService
public String getImage(Category category)
getImage
in interface SeoDefaultPropertyService
public String getImage(PageDTO page)
getImage
in interface SeoDefaultPropertyService
public String getCanonicalUrl(Product product)
getCanonicalUrl
in interface SeoDefaultPropertyService
public String getPaginationPrevUrl(Product product)
getPaginationPrevUrl
in interface SeoDefaultPropertyService
public String getPaginationNextUrl(Product product)
getPaginationNextUrl
in interface SeoDefaultPropertyService
protected boolean shouldIncludeProductPagination(int pageNumber)
protected boolean isValidPrevPageNumber(Integer pageNumber)
protected boolean isValidNextPageNumber(Product product, Integer pageNumber)
protected Integer getCurrentProductPageNumber()
public String getCanonicalUrl(Category category)
getCanonicalUrl
in interface SeoDefaultPropertyService
public String getPaginationPrevUrl(Category category)
getPaginationPrevUrl
in interface SeoDefaultPropertyService
public String getPaginationNextUrl(Category category)
getPaginationNextUrl
in interface SeoDefaultPropertyService
protected boolean shouldIncludeCategoryPagination(int pageNumber)
protected boolean isValidNextPageNumber(Category category, Integer pageNumber)
protected Integer getCurrentCategoryPageNumber()
protected boolean productPaginationIsEnabled()
protected String getProductPaginationParam()
protected String getCategoryPaginationParam()
protected int getPageSize()
Copyright © 2020. All rights reserved.