Interface SimpleSuggestionFacade
-
- All Known Implementing Classes:
DefaultSimpleSuggestionFacade
public interface SimpleSuggestionFacadeFacade to provide simple suggestions for a customer.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description java.util.List<ProductData>getReferencesForProducts(java.util.Set<java.lang.String> productCodes, java.util.List<ProductReferenceTypeEnum> referenceTypes, boolean excludePurchased, java.lang.Integer limit)Returns a list of referenced products for a set of productsjava.util.List<ProductData>getReferencesForPurchasedInCategory(java.lang.String categoryCode, ProductReferenceTypeEnum referenceType, boolean excludePurchased, java.lang.Integer limit)Deprecated.Since 5.0.java.util.List<ProductData>getReferencesForPurchasedInCategory(java.lang.String categoryCode, java.util.List<ProductReferenceTypeEnum> referenceTypes, boolean excludePurchased, java.lang.Integer limit)Returns a list of referenced products for a product purchased in a category identified by categoryCode.java.util.List<ProductData>getSuggestionsForProductsInCart(java.util.List<ProductReferenceTypeEnum> referenceTypes, boolean excludePurchased, java.lang.Integer limit)A better impl of the intention behind the above method.
-
-
-
Method Detail
-
getReferencesForPurchasedInCategory
@Deprecated(since="5.0") java.util.List<ProductData> getReferencesForPurchasedInCategory(java.lang.String categoryCode, ProductReferenceTypeEnum referenceType, boolean excludePurchased, java.lang.Integer limit)
Deprecated.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
java.util.List<ProductData> getReferencesForPurchasedInCategory(java.lang.String categoryCode, java.util.List<ProductReferenceTypeEnum> referenceTypes, boolean excludePurchased, java.lang.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
java.util.List<ProductData> getReferencesForProducts(java.util.Set<java.lang.String> productCodes, java.util.List<ProductReferenceTypeEnum> referenceTypes, boolean excludePurchased, java.lang.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
java.util.List<ProductData> getSuggestionsForProductsInCart(java.util.List<ProductReferenceTypeEnum> referenceTypes, boolean excludePurchased, java.lang.Integer limit)
A better impl of the intention behind the above method.- Parameters:
referenceTypes-excludePurchased-limit-- Returns:
- a list of suggestions
-
-