Class SeoPropertyServiceImpl

java.lang.Object
org.broadleafcommerce.core.web.seo.SeoPropertyServiceImpl
All Implemented Interfaces:
SeoPropertyService

@Service("blSeoPropertyService") @ConditionalOnTemplating public class SeoPropertyServiceImpl extends Object implements SeoPropertyService
Author:
Chris Kittrell (ckittrell)
  • Field Details

    • LOG

      protected static final org.apache.commons.logging.Log LOG
    • env

      @Autowired protected org.springframework.core.env.Environment env
    • generators

      protected List<SeoPropertyGenerator> generators
  • Constructor Details

    • SeoPropertyServiceImpl

      public SeoPropertyServiceImpl()
  • Method Details

    • getSeoProperties

      public Map<String,String> getSeoProperties(Product product)
      Description copied from interface: SeoPropertyService
      Returns a Map<String, String> that contains the known additional attributes for the current context. This method understands how to extract additional attributes for products.

      Note that this method will extract the values of the ProductAttributes from their respective entities. It does not filter these attributes, and it is quite likely that some of these attributes will not be SEO related.

      Individual resolvers for these attributes will skip ones that do not apply.

      Specified by:
      getSeoProperties in interface SeoPropertyService
      Returns:
      the known attributes
    • getSeoProperties

      public Map<String,String> getSeoProperties(Category category)
      Description copied from interface: SeoPropertyService
      Returns a Map<String, String> that contains the known additional attributes for the current context. This method understands how to extract additional attributes for products, categories, and pages.

      Note that this method will extract the values of the CategoryAttributes from their respective entities. It does not filter these attributes, and it is quite likely that some of these attributes will not be SEO related.

      Individual resolvers for these attributes will skip ones that do not apply.

      Specified by:
      getSeoProperties in interface SeoPropertyService
      Returns:
      the known attributes
    • getSeoProperties

      public Map<String,String> getSeoProperties(PageDTO page)
      Description copied from interface: SeoPropertyService
      Returns a Map<String, String> that contains the known additional attributes for the current context. This method understands how to extract additional attributes for products, categories, and pages.

      Note that this method will extract the values of the PageAttributes from their respective entities. It does not filter these attributes, and it is quite likely that some of these attributes will not be SEO related.

      Individual resolvers for these attributes will skip ones that do not apply.

      Specified by:
      getSeoProperties in interface SeoPropertyService
      Returns:
      the known attributes