Class DefaultSimpleSuggestionService

    • Constructor Detail

      • DefaultSimpleSuggestionService

        public DefaultSimpleSuggestionService()
    • Method Detail

      • getReferencesForPurchasedInCategory

        @Deprecated(since="5.0")
        public java.util.List<ProductModel> getReferencesForPurchasedInCategory​(CategoryModel category,
                                                                                UserModel user,
                                                                                ProductReferenceTypeEnum referenceType,
                                                                                boolean excludePurchased,
                                                                                java.lang.Integer limit)
        Deprecated.
        Since 5.0.
        Description copied from interface: SimpleSuggestionService
        Returns a list of referenced products for a product purchased in a category identified by categoryCode.
        Specified by:
        getReferencesForPurchasedInCategory in interface SimpleSuggestionService
        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

        public java.util.List<ProductModel> getReferencesForPurchasedInCategory​(CategoryModel category,
                                                                                java.util.List<ProductReferenceTypeEnum> referenceTypes,
                                                                                UserModel user,
                                                                                boolean excludePurchased,
                                                                                java.lang.Integer limit)
        Description copied from interface: SimpleSuggestionService
        Returns a list of referenced products for a product purchased in a category identified by categoryCode.
        Specified by:
        getReferencesForPurchasedInCategory in interface SimpleSuggestionService
        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

        public java.util.List<ProductModel> getReferencesForProducts​(java.util.List<ProductModel> products,
                                                                     java.util.List<ProductReferenceTypeEnum> referenceTypes,
                                                                     UserModel user,
                                                                     boolean excludePurchased,
                                                                     java.lang.Integer limit)
        Description copied from interface: SimpleSuggestionService
        Returns a list of referenced products for a list of products
        Specified by:
        getReferencesForProducts in interface SimpleSuggestionService
        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
      • setSimpleSuggestionDao

        public void setSimpleSuggestionDao​(SimpleSuggestionDao simpleSuggestionDao)