Class DefaultSimpleSuggestionDao
java.lang.Object
de.hybris.platform.servicelayer.internal.dao.AbstractItemDao
de.hybris.platform.yacceleratorcore.suggestion.dao.impl.DefaultSimpleSuggestionDao
- All Implemented Interfaces:
Dao,SimpleSuggestionDao
Default implementation of
SimpleSuggestionDao.
Finds products that are related products that the user has bought.-
Field Summary
Fields inherited from class de.hybris.platform.servicelayer.internal.dao.AbstractItemDao
flexibleSearchService, modelService -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfindProductsRelatedToProducts(List<ProductModel> products, List<ProductReferenceTypeEnum> referenceTypes, UserModel user, boolean excludePurchased, Integer limit) Returns a list of referenced products for a list of products.findProductsRelatedToPurchasedProductsByCategory(CategoryModel category, UserModel user, ProductReferenceTypeEnum referenceType, boolean excludePurchased, Integer limit) Deprecated, for removal: This API element is subject to removal in a future version.Since 5.0.findProductsRelatedToPurchasedProductsByCategory(CategoryModel category, List<ProductReferenceTypeEnum> referenceTypes, UserModel user, boolean excludePurchased, Integer limit) Returns a list of referenced products for a product purchased in a category identified by categoryCode.Methods inherited from class de.hybris.platform.servicelayer.internal.dao.AbstractItemDao
getAllSources, getFlexibleSearchService, getModelService, getSource, load, loadAll, search, search, searchUnique, setFlexibleSearchService, setModelService
-
Constructor Details
-
DefaultSimpleSuggestionDao
public DefaultSimpleSuggestionDao()
-
-
Method Details
-
findProductsRelatedToPurchasedProductsByCategory
public List<ProductModel> findProductsRelatedToPurchasedProductsByCategory(CategoryModel category, List<ProductReferenceTypeEnum> referenceTypes, UserModel user, boolean excludePurchased, Integer limit) Description copied from interface:SimpleSuggestionDaoReturns a list of referenced products for a product purchased in a category identified by categoryCode.- Specified by:
findProductsRelatedToPurchasedProductsByCategoryin interfaceSimpleSuggestionDao- Parameters:
category- the category that the returned products must belong toreferenceTypes- optional referenceTypesuser- the user that has placed the ordersexcludePurchased- if true, only retrieve products that have not been purchased by the userlimit- if not null: limit the amount of returned products to the given number- Returns:
- a list with referenced products
-
findProductsRelatedToProducts
public List<ProductModel> findProductsRelatedToProducts(List<ProductModel> products, List<ProductReferenceTypeEnum> referenceTypes, UserModel user, boolean excludePurchased, Integer limit) Description copied from interface:SimpleSuggestionDaoReturns a list of referenced products for a list of products.- Specified by:
findProductsRelatedToProductsin interfaceSimpleSuggestionDao- Parameters:
products- the products that the returned products must belong toreferenceTypes- optional referenceTypesuser- the user that has placed the ordersexcludePurchased- if true, only retrieve products that have not been purchased by the userlimit- if not null: limit the amount of returned products to the given number- Returns:
- a list with referenced products
-
findProductsRelatedToPurchasedProductsByCategory
@Deprecated(since="5.0", forRemoval=true) public List<ProductModel> findProductsRelatedToPurchasedProductsByCategory(CategoryModel category, UserModel user, ProductReferenceTypeEnum referenceType, boolean excludePurchased, Integer limit) Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
findProductsRelatedToPurchasedProductsByCategoryin interfaceSimpleSuggestionDao
-