Interface SimpleSuggestionFacade

All Known Implementing Classes:
DefaultSimpleSuggestionFacade

public interface SimpleSuggestionFacade
Facade to provide simple suggestions for a customer.
  • Method Details

    • getReferencesForPurchasedInCategory

      @Deprecated(since="5.0", forRemoval=true) 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. Use getReferencesForPurchasedInCategory(String categoryCode, List referenceTypes, boolean excludePurchased, Integer limit) instead.
      Returns a list of referenced products for a product purchased in a category identified by categoryCode.
      Parameters:
      categoryCode -
      referenceType - referenceType, can be null
      excludePurchased - if true, only retrieve products that were not yet bought by the user
      limit - if not null: limit the amount of returned products to the given number
      Returns:
      a list with referenced products
    • getReferencesForPurchasedInCategory

      List<ProductData> 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.
      Parameters:
      categoryCode - the category code
      referenceTypes - referenceType, can be empty
      excludePurchased - if true, only retrieve products that were not yet bought by the user
      limit - if not null: limit the amount of returned products to the given number
      Returns:
      a list with referenced products
    • getReferencesForProducts

      List<ProductData> getReferencesForProducts(Set<String> productCodes, List<ProductReferenceTypeEnum> referenceTypes, boolean excludePurchased, Integer limit)
      Returns a list of referenced products for a set of products
      Parameters:
      productCodes - product codes
      referenceTypes - referenceType, can be empty
      excludePurchased - if true, only retrieve products that were not yet bought by the user
      limit - if not null: limit the amount of returned products to the given number
      Returns:
      a list with referenced products
    • getSuggestionsForProductsInCart

      List<ProductData> getSuggestionsForProductsInCart(List<ProductReferenceTypeEnum> referenceTypes, boolean excludePurchased, Integer limit)
      A better impl of the intention behind the above method.
      Parameters:
      referenceTypes -
      excludePurchased -
      limit -
      Returns:
      a list of suggestions