Interface SelectiveCartFacade
-
- All Known Implementing Classes:
DefaultSelectiveCartFacade
public interface SelectiveCartFacadeDeals with selective cart related DTOs using existing service
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddToCartFromWishlist(java.lang.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(java.lang.Integer entryNumber)Removes the entry from cart and adds cart entry to wishlistvoidaddToWishlistFromCart(java.util.List<java.lang.String> productCodes)Removes the entry from cart and adds the entry to wishlistWishlist2DatagetWishlistForSelectiveCart()Gets the wishlist2data for selective cart of the current userjava.util.List<OrderEntryData>getWishlistOrdersForSelectiveCart()Gets order entries that are converted from Wishlist2EntryModelvoidremoveWishlistEntryForProduct(java.lang.String productCode)Removes the entry from wishlist by product codevoidupdateCartFromWishlist()Removes the entry from wishlist and adds wishlist entry to cart as a cart entry
-
-
-
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 CommerceCartModificationExceptionRemoves 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 CommerceCartModificationExceptionRemoves 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(java.lang.Integer entryNumber) throws CommerceCartModificationExceptionRemoves 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 CommerceCartModificationExceptionRemoves 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
-
-