Interface SimpleSuggestionFacade

  • All Known Implementing Classes:
    DefaultSimpleSuggestionFacade

    public interface SimpleSuggestionFacade
    Facade to provide simple suggestions for a customer.
    • Method Detail

      • getReferencesForPurchasedInCategory

        @Deprecated(since="5.0")
        java.util.List<ProductData> getReferencesForPurchasedInCategory​(java.lang.String categoryCode,
                                                                        ProductReferenceTypeEnum referenceType,
                                                                        boolean excludePurchased,
                                                                        java.lang.Integer limit)
        Deprecated.
        Since 5.0. Use getReferencesForPurchasedInCategory(String categoryCode, List referenceTypes, boolean excludePurchased, Integer limit) instead.
        Returns a list of referenced products for a product purchased in a category identified by categoryCode.
        Parameters:
        categoryCode -
        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
      • getReferencesForPurchasedInCategory

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

        java.util.List<ProductData> getReferencesForProducts​(java.util.Set<java.lang.String> productCodes,
                                                             java.util.List<ProductReferenceTypeEnum> referenceTypes,
                                                             boolean excludePurchased,
                                                             java.lang.Integer limit)
        Returns a list of referenced products for a set of products
        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
      • getSuggestionsForProductsInCart

        java.util.List<ProductData> getSuggestionsForProductsInCart​(java.util.List<ProductReferenceTypeEnum> referenceTypes,
                                                                    boolean excludePurchased,
                                                                    java.lang.Integer limit)
        A better impl of the intention behind the above method.
        Parameters:
        referenceTypes -
        excludePurchased -
        limit -
        Returns:
        a list of suggestions