Class DefaultSimpleSuggestionService
- java.lang.Object
-
- de.hybris.platform.yacceleratorcore.suggestion.impl.DefaultSimpleSuggestionService
-
- All Implemented Interfaces:
SimpleSuggestionService
public class DefaultSimpleSuggestionService extends java.lang.Object implements SimpleSuggestionService
Default implementation ofSimpleSuggestionService
.
-
-
Constructor Summary
Constructors Constructor Description DefaultSimpleSuggestionService()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.util.List<ProductModel>
getReferencesForProducts(java.util.List<ProductModel> products, java.util.List<ProductReferenceTypeEnum> referenceTypes, UserModel user, boolean excludePurchased, java.lang.Integer limit)
Returns a list of referenced products for a list of productsjava.util.List<ProductModel>
getReferencesForPurchasedInCategory(CategoryModel category, UserModel user, ProductReferenceTypeEnum referenceType, boolean excludePurchased, java.lang.Integer limit)
Deprecated.Since 5.0.java.util.List<ProductModel>
getReferencesForPurchasedInCategory(CategoryModel category, java.util.List<ProductReferenceTypeEnum> referenceTypes, UserModel user, boolean excludePurchased, java.lang.Integer limit)
Returns a list of referenced products for a product purchased in a category identified by categoryCode.protected SimpleSuggestionDao
getSimpleSuggestionDao()
void
setSimpleSuggestionDao(SimpleSuggestionDao simpleSuggestionDao)
-
-
-
Method Detail
-
getReferencesForPurchasedInCategory
@Deprecated(since="5.0") public java.util.List<ProductModel> getReferencesForPurchasedInCategory(CategoryModel category, UserModel user, ProductReferenceTypeEnum referenceType, boolean excludePurchased, java.lang.Integer limit)
Deprecated.Since 5.0.Description copied from interface:SimpleSuggestionService
Returns a list of referenced products for a product purchased in a category identified by categoryCode.- Specified by:
getReferencesForPurchasedInCategory
in interfaceSimpleSuggestionService
referenceType
- 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 java.util.List<ProductModel> getReferencesForPurchasedInCategory(CategoryModel category, java.util.List<ProductReferenceTypeEnum> referenceTypes, UserModel user, boolean excludePurchased, java.lang.Integer limit)
Description copied from interface:SimpleSuggestionService
Returns a list of referenced products for a product purchased in a category identified by categoryCode.- Specified by:
getReferencesForPurchasedInCategory
in interfaceSimpleSuggestionService
referenceTypes
- 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 java.util.List<ProductModel> getReferencesForProducts(java.util.List<ProductModel> products, java.util.List<ProductReferenceTypeEnum> referenceTypes, UserModel user, boolean excludePurchased, java.lang.Integer limit)
Description copied from interface:SimpleSuggestionService
Returns a list of referenced products for a list of products- Specified by:
getReferencesForProducts
in interfaceSimpleSuggestionService
referenceTypes
- 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
protected SimpleSuggestionDao getSimpleSuggestionDao()
-
setSimpleSuggestionDao
public void setSimpleSuggestionDao(SimpleSuggestionDao simpleSuggestionDao)
-
-