Class DefaultBrowseEntityResolver
java.lang.Object
com.broadleafcommerce.catalogbrowse.service.DefaultBrowseEntityResolver
- All Implemented Interfaces:
BrowseEntityResolver
- Author:
- Nathan Moore (nathandmoore)
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultBrowseEntityResolver(List<BrowseEntityProvider> entityProviders, com.broadleafcommerce.common.extension.TypeFactory typeFactory) -
Method Summary
Modifier and TypeMethodDescriptionfetchBrowseEntity(@NonNull BrowseDetailsRequest request) Fetches the browse entity that matches the details in therequest.protected CatalogSearchProvider<Product>protected List<BrowseEntityProvider>protected com.broadleafcommerce.common.extension.TypeFactoryvoidsetBrowseCatalogSearchProvider(CatalogSearchProvider<Product> browseCatalogSearchProvider)
-
Constructor Details
-
DefaultBrowseEntityResolver
public DefaultBrowseEntityResolver(List<BrowseEntityProvider> entityProviders, com.broadleafcommerce.common.extension.TypeFactory typeFactory)
-
-
Method Details
-
fetchBrowseEntity
Description copied from interface:BrowseEntityResolverFetches the browse entity that matches the details in therequest. This could aCategory, one or moreProducts, or one or moreContentItems. This will make requests through theBrowseEntityProvidersto find the matching entity or entities. It will stop at the first provider that returns results.- Specified by:
fetchBrowseEntityin interfaceBrowseEntityResolver- 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
-
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
- Since:
- Catalog Browse Service 2.1.0, Release Train 2.2.0
-