Class DefaultSimpleSuggestionService
java.lang.Object
de.hybris.platform.yacceleratorcore.suggestion.impl.DefaultSimpleSuggestionService
- All Implemented Interfaces:
SimpleSuggestionService
Default implementation of
SimpleSuggestionService.-
Constructor Summary
Constructors -
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.protected SimpleSuggestionDaovoidsetSimpleSuggestionDao(SimpleSuggestionDao simpleSuggestionDao)
-
Constructor Details
-
DefaultSimpleSuggestionService
public DefaultSimpleSuggestionService()
-
-
Method Details
-
getReferencesForPurchasedInCategory
@Deprecated(since="5.0", forRemoval=true) public 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.Description copied from interface:SimpleSuggestionServiceReturns a list of referenced products for a product purchased in a category identified by categoryCode.- Specified by:
getReferencesForPurchasedInCategoryin interfaceSimpleSuggestionServicereferenceType- 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
public List<ProductModel> getReferencesForPurchasedInCategory(CategoryModel category, List<ProductReferenceTypeEnum> referenceTypes, UserModel user, boolean excludePurchased, Integer limit) Description copied from interface:SimpleSuggestionServiceReturns a list of referenced products for a product purchased in a category identified by categoryCode.- Specified by:
getReferencesForPurchasedInCategoryin interfaceSimpleSuggestionServicereferenceTypes- 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
public List<ProductModel> getReferencesForProducts(List<ProductModel> products, List<ProductReferenceTypeEnum> referenceTypes, UserModel user, boolean excludePurchased, Integer limit) Description copied from interface:SimpleSuggestionServiceReturns a list of referenced products for a list of products- Specified by:
getReferencesForProductsin interfaceSimpleSuggestionServicereferenceTypes- 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
-
getSimpleSuggestionDao
-
setSimpleSuggestionDao
-