Interface SelectiveCartFacade
- All Known Implementing Classes:
DefaultSelectiveCartFacade
public interface SelectiveCartFacade
Deals with selective cart related DTOs using existing service
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddToCartFromWishlist(String productCode) Removes the entry from wishlist and adds wishlist entry to cart as a cart entryvoidaddToWishlistFromCart(OrderEntryData orderEntry) Removes the entry from cart and adds cart entry to wishlistvoidaddToWishlistFromCart(Integer entryNumber) Removes the entry from cart and adds cart entry to wishlistvoidaddToWishlistFromCart(List<String> productCodes) Removes the entry from cart and adds the entry to wishlistGets the wishlist2data for selective cart of the current userGets order entries that are converted from Wishlist2EntryModelvoidremoveWishlistEntryForProduct(String productCode) Removes the entry from wishlist by product codevoidRemoves the entry from wishlist and adds wishlist entry to cart as a cart entry
-
Method Details
-
getWishlistForSelectiveCart
Wishlist2Data getWishlistForSelectiveCart()Gets the wishlist2data for selective cart of the current user- Returns:
- the Wishlist2Data
-
removeWishlistEntryForProduct
Removes the entry from wishlist by product code- Parameters:
productCode- the product code used for removing entry
-
addToCartFromWishlist
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
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
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
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
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
-