Interface SimpleSuggestionFacade
- All Known Implementing Classes:
DefaultSimpleSuggestionFacade
public interface SimpleSuggestionFacade
Facade to provide simple suggestions for a customer.
-
Method Summary
Modifier and TypeMethodDescriptiongetReferencesForProducts(Set<String> productCodes, List<ProductReferenceTypeEnum> referenceTypes, boolean excludePurchased, Integer limit) Returns a list of referenced products for a set of productsgetReferencesForPurchasedInCategory(String categoryCode, ProductReferenceTypeEnum referenceType, boolean excludePurchased, Integer limit) Deprecated, for removal: This API element is subject to removal in a future version.Since 5.0.getReferencesForPurchasedInCategory(String categoryCode, List<ProductReferenceTypeEnum> referenceTypes, boolean excludePurchased, Integer limit) Returns a list of referenced products for a product purchased in a category identified by categoryCode.getSuggestionsForProductsInCart(List<ProductReferenceTypeEnum> referenceTypes, boolean excludePurchased, Integer limit) A better impl of the intention behind the above method.
-
Method Details
-
getReferencesForPurchasedInCategory
@Deprecated(since="5.0", forRemoval=true) List<ProductData> getReferencesForPurchasedInCategory(String categoryCode, 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(String categoryCode, ListreferenceTypes, boolean excludePurchased, Integer limit) instead. Returns a list of referenced products for a product purchased in a category identified by categoryCode.- Parameters:
categoryCode-referenceType- referenceType, can be nullexcludePurchased- if true, only retrieve products that were not yet bought by the userlimit- if not null: limit the amount of returned products to the given number- Returns:
- a list with referenced products
-
getReferencesForPurchasedInCategory
List<ProductData> getReferencesForPurchasedInCategory(String categoryCode, List<ProductReferenceTypeEnum> referenceTypes, boolean excludePurchased, Integer limit) Returns a list of referenced products for a product purchased in a category identified by categoryCode.- Parameters:
categoryCode- the category codereferenceTypes- referenceType, can be emptyexcludePurchased- if true, only retrieve products that were not yet bought by the userlimit- if not null: limit the amount of returned products to the given number- Returns:
- a list with referenced products
-
getReferencesForProducts
List<ProductData> getReferencesForProducts(Set<String> productCodes, List<ProductReferenceTypeEnum> referenceTypes, boolean excludePurchased, Integer limit) Returns a list of referenced products for a set of products- Parameters:
productCodes- product codesreferenceTypes- referenceType, can be emptyexcludePurchased- if true, only retrieve products that were not yet bought by the userlimit- if not null: limit the amount of returned products to the given number- Returns:
- a list with referenced products
-
getSuggestionsForProductsInCart
List<ProductData> getSuggestionsForProductsInCart(List<ProductReferenceTypeEnum> referenceTypes, boolean excludePurchased, Integer limit) A better impl of the intention behind the above method.- Parameters:
referenceTypes-excludePurchased-limit-- Returns:
- a list of suggestions
-