Class DefaultSimpleSuggestionFacade
- java.lang.Object
-
- de.hybris.platform.yacceleratorfacades.suggestion.impl.DefaultSimpleSuggestionFacade
-
- All Implemented Interfaces:
SimpleSuggestionFacade
public class DefaultSimpleSuggestionFacade extends java.lang.Object implements SimpleSuggestionFacade
Default implementation ofSimpleSuggestionFacade.
-
-
Constructor Summary
Constructors Constructor Description DefaultSimpleSuggestionFacade()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected java.util.Set<ProductModel>getAllBaseProducts(ProductModel productModel)protected CartServicegetCartService()protected CategoryServicegetCategoryService()protected Converter<ProductModel,ProductData>getProductConverter()protected ProductServicegetProductService()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, for removal: This API element is subject to removal in a future version.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.protected SimpleSuggestionServicegetSimpleSuggestionService()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 UserServicegetUserService()voidsetCartService(CartService cartService)voidsetCategoryService(CategoryService categoryService)voidsetProductConverter(Converter<ProductModel,ProductData> productConverter)voidsetProductService(ProductService productService)voidsetSimpleSuggestionService(SimpleSuggestionService simpleSuggestionService)voidsetUserService(UserService userService)
-
-
-
Method Detail
-
getReferencesForPurchasedInCategory
public java.util.List<ProductData> getReferencesForPurchasedInCategory(java.lang.String categoryCode, java.util.List<ProductReferenceTypeEnum> referenceTypes, boolean excludePurchased, java.lang.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 java.util.List<ProductData> getReferencesForProducts(java.util.Set<java.lang.String> productCodes, java.util.List<ProductReferenceTypeEnum> referenceTypes, boolean excludePurchased, java.lang.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 java.util.List<ProductData> getSuggestionsForProductsInCart(java.util.List<ProductReferenceTypeEnum> referenceTypes, boolean excludePurchased, java.lang.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
protected java.util.Set<ProductModel> getAllBaseProducts(ProductModel productModel)
-
getReferencesForPurchasedInCategory
@Deprecated(since="5.0", forRemoval=true) public java.util.List<ProductData> getReferencesForPurchasedInCategory(java.lang.String categoryCode, ProductReferenceTypeEnum referenceType, boolean excludePurchased, java.lang.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
protected UserService getUserService()
-
setUserService
public void setUserService(UserService userService)
-
getCategoryService
protected CategoryService getCategoryService()
-
setCategoryService
public void setCategoryService(CategoryService categoryService)
-
getProductService
protected ProductService getProductService()
-
setProductService
public void setProductService(ProductService productService)
-
getProductConverter
protected Converter<ProductModel,ProductData> getProductConverter()
-
setProductConverter
public void setProductConverter(Converter<ProductModel,ProductData> productConverter)
-
getSimpleSuggestionService
protected SimpleSuggestionService getSimpleSuggestionService()
-
setSimpleSuggestionService
public void setSimpleSuggestionService(SimpleSuggestionService simpleSuggestionService)
-
getCartService
protected CartService getCartService()
-
setCartService
public void setCartService(CartService cartService)
-
-