Class DefaultSimpleSuggestionFacade

    • Constructor Detail

      • DefaultSimpleSuggestionFacade

        public DefaultSimpleSuggestionFacade()
    • Method Detail

      • getReferencesForPurchasedInCategory

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

        public java.util.List<ProductData> getReferencesForProducts​(java.util.Set<java.lang.String> productCodes,
                                                                    java.util.List<ProductReferenceTypeEnum> referenceTypes,
                                                                    boolean excludePurchased,
                                                                    java.lang.Integer limit)
        Description copied from interface: SimpleSuggestionFacade
        Returns a list of referenced products for a set of products
        Specified by:
        getReferencesForProducts in interface SimpleSuggestionFacade
        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
      • getReferencesForPurchasedInCategory

        @Deprecated(since="5.0",
                    forRemoval=true)
        public java.util.List<ProductData> getReferencesForPurchasedInCategory​(java.lang.String categoryCode,
                                                                               ProductReferenceTypeEnum referenceType,
                                                                               boolean excludePurchased,
                                                                               java.lang.Integer limit)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Since 5.0.
        Description copied from interface: SimpleSuggestionFacade
        Returns a list of referenced products for a product purchased in a category identified by categoryCode.
        Specified by:
        getReferencesForPurchasedInCategory in interface SimpleSuggestionFacade
        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
      • getUserService

        protected UserService getUserService()
      • setUserService

        public void setUserService​(UserService userService)
      • setCategoryService

        public void setCategoryService​(CategoryService categoryService)
      • setProductService

        public void setProductService​(ProductService productService)
      • setSimpleSuggestionService

        public void setSimpleSuggestionService​(SimpleSuggestionService simpleSuggestionService)
      • getCartService

        protected CartService getCartService()
      • setCartService

        public void setCartService​(CartService cartService)