Interface SelectiveCartFacade

All Known Implementing Classes:
DefaultSelectiveCartFacade

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

    • getWishlistForSelectiveCart

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

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

      void addToCartFromWishlist(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
    • updateCartFromWishlist

      void updateCartFromWishlist() throws CommerceCartModificationException
      Removes the entry from wishlist and adds wishlist entry to cart as a cart entry
      Throws:
      CommerceCartModificationException - throws when cart could not be modified
    • addToWishlistFromCart

      void addToWishlistFromCart(OrderEntryData orderEntry) throws CommerceCartModificationException
      Removes the entry from cart and adds cart entry to wishlist
      Parameters:
      orderEntry - the order entry data
      Throws:
      CommerceCartModificationException - throws when cart could not be modified
    • addToWishlistFromCart

      void addToWishlistFromCart(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(List<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

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