Interface SimpleSuggestionDao
- All Superinterfaces:
Dao
- All Known Implementing Classes:
DefaultSimpleSuggestionDao
Dao to retrieve product related data for
SimpleSuggestionService.-
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 4.5.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.
-
Method Details
-
findProductsRelatedToPurchasedProductsByCategory
@Deprecated(since="4.5", forRemoval=true) 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.Since 4.5. Use findProductsRelatedToPurchasedProductsByCategory(CategoryModel category, ListreferenceTypes, UserModel user, boolean excludePurchased, Integer limit) instead. -
findProductsRelatedToPurchasedProductsByCategory
List<ProductModel> 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.- Parameters:
category- the category that the returned products must belong touser- the user that has placed the ordersreferenceTypes- optional referenceTypesexcludePurchased- 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
List<ProductModel> findProductsRelatedToProducts(List<ProductModel> products, List<ProductReferenceTypeEnum> referenceTypes, UserModel user, boolean excludePurchased, Integer limit) Returns a list of referenced products for a list of products.- Parameters:
products- the products that the returned products must belong touser- the user that has placed the ordersreferenceTypes- optional referenceTypesexcludePurchased- 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
-