Class DefaultSimpleSuggestionFacade
java.lang.Object
de.hybris.platform.yacceleratorfacades.suggestion.impl.DefaultSimpleSuggestionFacade
- All Implemented Interfaces:
SimpleSuggestionFacade
Default implementation of
SimpleSuggestionFacade.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Set<ProductModel>getAllBaseProducts(ProductModel productModel) protected CartServiceprotected CategoryServiceprotected Converter<ProductModel,ProductData> protected ProductServicegetReferencesForProducts(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.protected SimpleSuggestionServicegetSuggestionsForProductsInCart(List<ProductReferenceTypeEnum> referenceTypes, boolean excludePurchased, Integer limit) A better impl of the intention behind the above method.protected UserServicevoidsetCartService(CartService cartService) voidsetCategoryService(CategoryService categoryService) voidsetProductConverter(Converter<ProductModel, ProductData> productConverter) voidsetProductService(ProductService productService) voidsetSimpleSuggestionService(SimpleSuggestionService simpleSuggestionService) voidsetUserService(UserService userService)
-
Constructor Details
-
DefaultSimpleSuggestionFacade
public DefaultSimpleSuggestionFacade()
-
-
Method Details
-
getReferencesForPurchasedInCategory
public List<ProductData> getReferencesForPurchasedInCategory(String categoryCode, List<ProductReferenceTypeEnum> referenceTypes, boolean excludePurchased, Integer limit) Description copied from interface:SimpleSuggestionFacadeReturns a list of referenced products for a product purchased in a category identified by categoryCode.- Specified by:
getReferencesForPurchasedInCategoryin interfaceSimpleSuggestionFacade- 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
public List<ProductData> getReferencesForProducts(Set<String> productCodes, List<ProductReferenceTypeEnum> referenceTypes, boolean excludePurchased, Integer limit) Description copied from interface:SimpleSuggestionFacadeReturns a list of referenced products for a set of products- Specified by:
getReferencesForProductsin interfaceSimpleSuggestionFacade- 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
public List<ProductData> getSuggestionsForProductsInCart(List<ProductReferenceTypeEnum> referenceTypes, boolean excludePurchased, Integer limit) Description copied from interface:SimpleSuggestionFacadeA better impl of the intention behind the above method.- Specified by:
getSuggestionsForProductsInCartin interfaceSimpleSuggestionFacade- Returns:
- a list of suggestions
-
getAllBaseProducts
-
getReferencesForPurchasedInCategory
@Deprecated(since="5.0", forRemoval=true) public 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.Description copied from interface:SimpleSuggestionFacadeReturns a list of referenced products for a product purchased in a category identified by categoryCode.- Specified by:
getReferencesForPurchasedInCategoryin interfaceSimpleSuggestionFacadereferenceType- 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
-
getUserService
-
setUserService
-
getCategoryService
-
setCategoryService
-
getProductService
-
setProductService
-
getProductConverter
-
setProductConverter
-
getSimpleSuggestionService
-
setSimpleSuggestionService
-
getCartService
-
setCartService
-