Interface SimpleSuggestionService
- All Known Implementing Classes:
DefaultSimpleSuggestionService
public interface SimpleSuggestionService
Dao to retrieve product related data for
SimpleSuggestionService-
Method Summary
Modifier and TypeMethodDescriptiongetReferencesForProducts(List<ProductModel> products, List<ProductReferenceTypeEnum> referenceTypes, UserModel user, boolean excludePurchased, Integer limit) Returns a list of referenced products for a list of productsgetReferencesForPurchasedInCategory(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.getReferencesForPurchasedInCategory(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
-
getReferencesForPurchasedInCategory
@Deprecated(since="5.0", forRemoval=true) List<ProductModel> getReferencesForPurchasedInCategory(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. Use getReferencesForPurchasedInCategory(CategoryModel category, ListreferenceTypes, UserModel user, boolean excludePurchased, Integer limit) instead. Returns a list of referenced products for a product purchased in a category identified by categoryCode.- Parameters:
category-user-referenceType- optional referenceTypeexcludePurchased- 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
-
getReferencesForPurchasedInCategory
List<ProductModel> getReferencesForPurchasedInCategory(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-user-referenceTypes- 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
-
getReferencesForProducts
List<ProductModel> getReferencesForProducts(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-user-referenceTypes- 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
-