Interface SimpleSuggestionService

    • Method Detail

      • getReferencesForPurchasedInCategory

        @Deprecated(since="5.0")
        java.util.List<ProductModel> getReferencesForPurchasedInCategory​(CategoryModel category,
                                                                         UserModel user,
                                                                         ProductReferenceTypeEnum referenceType,
                                                                         boolean excludePurchased,
                                                                         java.lang.Integer limit)
        Deprecated.
        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

        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.
        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

        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 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