Interface SelectiveCartFacade
-
- All Known Implementing Classes:
DefaultSelectiveCartFacade
public interface SelectiveCartFacade
Deals with selective cart related DTOs using existing service
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addToCartFromWishlist(java.lang.String productCode)
Removes the entry from wishlist and adds wishlist entry to cart as a cart entryvoid
addToWishlistFromCart(OrderEntryData orderEntry)
Removes the entry from cart and adds cart entry to wishlistvoid
addToWishlistFromCart(java.lang.Integer entryNumber)
Removes the entry from cart and adds cart entry to wishlistvoid
addToWishlistFromCart(java.util.List<java.lang.String> productCodes)
Removes the entry from cart and adds the entry to wishlistWishlist2Data
getWishlistForSelectiveCart()
Gets the wishlist2data for selective cart of the current userjava.util.List<OrderEntryData>
getWishlistOrdersForSelectiveCart()
Gets order entries that are converted from Wishlist2EntryModelvoid
removeWishlistEntryForProduct(java.lang.String productCode)
Removes the entry from wishlist by product codevoid
updateCartFromWishlist()
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 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(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
-
-