public class DefaultSimpleSuggestionFacade extends java.lang.Object implements SimpleSuggestionFacade
SimpleSuggestionFacade.| Constructor and Description |
|---|
DefaultSimpleSuggestionFacade() |
| Modifier and Type | Method and Description |
|---|---|
protected java.util.Set<ProductModel> |
getAllBaseProducts(ProductModel productModel) |
protected CartService |
getCartService() |
protected CategoryService |
getCategoryService() |
protected Converter<ProductModel,ProductData> |
getProductConverter() |
protected ProductService |
getProductService() |
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
|
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> |
getReferencesForPurchasedInCategory(java.lang.String categoryCode,
ProductReferenceTypeEnum referenceType,
boolean excludePurchased,
java.lang.Integer limit)
Deprecated.
Since 5.0.
|
protected SimpleSuggestionService |
getSimpleSuggestionService() |
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.
|
protected UserService |
getUserService() |
void |
setCartService(CartService cartService) |
void |
setCategoryService(CategoryService categoryService) |
void |
setProductConverter(Converter<ProductModel,ProductData> productConverter) |
void |
setProductService(ProductService productService) |
void |
setSimpleSuggestionService(SimpleSuggestionService simpleSuggestionService) |
void |
setUserService(UserService userService) |
public java.util.List<ProductData> getReferencesForPurchasedInCategory(java.lang.String categoryCode, java.util.List<ProductReferenceTypeEnum> referenceTypes, boolean excludePurchased, java.lang.Integer limit)
SimpleSuggestionFacadegetReferencesForPurchasedInCategory in interface SimpleSuggestionFacadecategoryCode - 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 numberpublic java.util.List<ProductData> getReferencesForProducts(java.util.Set<java.lang.String> productCodes, java.util.List<ProductReferenceTypeEnum> referenceTypes, boolean excludePurchased, java.lang.Integer limit)
SimpleSuggestionFacadegetReferencesForProducts in interface SimpleSuggestionFacadeproductCodes - 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 numberpublic java.util.List<ProductData> getSuggestionsForProductsInCart(java.util.List<ProductReferenceTypeEnum> referenceTypes, boolean excludePurchased, java.lang.Integer limit)
SimpleSuggestionFacadegetSuggestionsForProductsInCart in interface SimpleSuggestionFacadeprotected java.util.Set<ProductModel> getAllBaseProducts(ProductModel productModel)
@Deprecated public java.util.List<ProductData> getReferencesForPurchasedInCategory(java.lang.String categoryCode, ProductReferenceTypeEnum referenceType, boolean excludePurchased, java.lang.Integer limit)
SimpleSuggestionFacadegetReferencesForPurchasedInCategory in interface SimpleSuggestionFacadereferenceType - 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 numberprotected UserService getUserService()
public void setUserService(UserService userService)
protected CategoryService getCategoryService()
public void setCategoryService(CategoryService categoryService)
protected ProductService getProductService()
public void setProductService(ProductService productService)
protected Converter<ProductModel,ProductData> getProductConverter()
public void setProductConverter(Converter<ProductModel,ProductData> productConverter)
protected SimpleSuggestionService getSimpleSuggestionService()
public void setSimpleSuggestionService(SimpleSuggestionService simpleSuggestionService)
protected CartService getCartService()
public void setCartService(CartService cartService)
Copyright © 2018 SAP SE. All Rights Reserved.