Interface SimpleSuggestionService

All Known Implementing Classes:
DefaultSimpleSuggestionService

public interface SimpleSuggestionService
Dao to retrieve product related data for SimpleSuggestionService
  • Method Details

    • getReferencesForPurchasedInCategory

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