Interface SelectiveCartFacade

  • All Known Implementing Classes:
    DefaultSelectiveCartFacade

    public interface SelectiveCartFacade
    Deals with selective cart related DTOs using existing service
    • Method Detail

      • getWishlistForSelectiveCart

        Wishlist2Data getWishlistForSelectiveCart()
        Gets the wishlist2data for selective cart of the current user
        Returns:
        the Wishlist2Data
      • removeWishlistEntryForProduct

        void removeWishlistEntryForProduct​(java.lang.String productCode)
        Removes the entry from wishlist by product code
        Parameters:
        productCode - the product code used for removing entry
      • addToCartFromWishlist

        void addToCartFromWishlist​(java.lang.String productCode)
                            throws CommerceCartModificationException
        Removes the entry from wishlist and adds wishlist entry to cart as a cart entry
        Parameters:
        productCode - the product code used for getting entry from wishlist
        Throws:
        CommerceCartModificationException - throws when removing wish list entry error
      • addToWishlistFromCart

        void addToWishlistFromCart​(java.lang.Integer entryNumber)
                            throws CommerceCartModificationException
        Removes the entry from cart and adds cart entry to wishlist
        Parameters:
        entryNumber - the entry number used for getting cart entry
        Throws:
        CommerceCartModificationException - throws when cart could not be modified
      • addToWishlistFromCart

        void addToWishlistFromCart​(java.util.List<java.lang.String> productCodes)
                            throws CommerceCartModificationException
        Removes the entry from cart and adds the entry to wishlist
        Parameters:
        productCodes - the product code list used for getting product data from cart entry
        Throws:
        CommerceCartModificationException - throws when the cart could not be modified
      • getWishlistOrdersForSelectiveCart

        java.util.List<OrderEntryData> getWishlistOrdersForSelectiveCart()
        Gets order entries that are converted from Wishlist2EntryModel
        Returns:
        the list of OrderEntryData