Class DefaultBrowseEntityResolver

java.lang.Object
com.broadleafcommerce.catalogbrowse.service.DefaultBrowseEntityResolver
All Implemented Interfaces:
BrowseEntityResolver

public class DefaultBrowseEntityResolver extends Object implements BrowseEntityResolver
Author:
Nathan Moore (nathandmoore)
  • Constructor Details

    • DefaultBrowseEntityResolver

      public DefaultBrowseEntityResolver(List<BrowseEntityProvider> entityProviders, com.broadleafcommerce.common.extension.TypeFactory typeFactory)
  • Method Details

    • fetchBrowseEntity

      public BrowseEntityDetails fetchBrowseEntity(@NonNull @NonNull BrowseDetailsRequest request)
      Description copied from interface: BrowseEntityResolver
      Fetches the browse entity that matches the details in the request. This could a Category, one or more Products, or one or more ContentItems. This will make requests through the BrowseEntityProviders to find the matching entity or entities. It will stop at the first provider that returns results.
      Specified by:
      fetchBrowseEntity in interface BrowseEntityResolver
      Parameters:
      request - All of the details needed to retrieve the desired browse details.
      Returns:
      The browse entity that matches the details in the request.
    • getEntityProviders

      protected List<BrowseEntityProvider> getEntityProviders()
    • getTypeFactory

      protected com.broadleafcommerce.common.extension.TypeFactory getTypeFactory()
    • setBrowseCatalogSearchProvider

      @Autowired public void setBrowseCatalogSearchProvider(CatalogSearchProvider<Product> browseCatalogSearchProvider)
      Since:
      Catalog Browse Service 2.1.0, Release Train 2.2.0
    • getBrowseCatalogSearchProvider

      protected CatalogSearchProvider<Product> getBrowseCatalogSearchProvider()
      Since:
      Catalog Browse Service 2.1.0, Release Train 2.2.0