Interface SimpleSuggestionDao

All Superinterfaces:
Dao
All Known Implementing Classes:
DefaultSimpleSuggestionDao

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

    • findProductsRelatedToPurchasedProductsByCategory

      @Deprecated(since="4.5", forRemoval=true) List<ProductModel> findProductsRelatedToPurchasedProductsByCategory(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 4.5. Use findProductsRelatedToPurchasedProductsByCategory(CategoryModel category, List referenceTypes, UserModel user, boolean excludePurchased, Integer limit) instead.
    • findProductsRelatedToPurchasedProductsByCategory

      List<ProductModel> findProductsRelatedToPurchasedProductsByCategory(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 - the category that the returned products must belong to
      user - the user that has placed the orders
      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
    • findProductsRelatedToProducts

      List<ProductModel> findProductsRelatedToProducts(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 - the products that the returned products must belong to
      user - the user that has placed the orders
      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