public class DefaultSelectiveCartFacade extends java.lang.Object implements SelectiveCartFacade
SelectiveCartFacade| Constructor and Description |
|---|
DefaultSelectiveCartFacade() |
| Modifier and Type | Method and Description |
|---|---|
void |
addToCartFromWishlist(java.lang.String productCode)
Removes the entry from wishlist and adds wishlist entry to cart as a cart entry
|
void |
addToWishlistFromCart(java.lang.Integer entryNumber)
Removes the entry from cart and adds cart entry to wishlist
|
void |
addToWishlistFromCart(java.util.List<java.lang.String> productCodes)
Removes the entry from cart and adds the entry to wishlist
|
void |
addToWishlistFromCart(OrderEntryData orderEntry)
Removes the entry from cart and adds cart entry to wishlist
|
protected CartFacade |
getCartFacade() |
protected ProductService |
getProductService() |
protected SelectiveCartService |
getSelectiveCartService() |
Converter<Wishlist2EntryModel,OrderEntryData> |
getWishlish2EntryModelToOrderEntryConverter() |
protected Converter<Wishlist2Model,Wishlist2Data> |
getWishlistConverter() |
Wishlist2Data |
getWishlistForSelectiveCart()
Gets the wishlist2data for selective cart of the current user
|
java.util.List<OrderEntryData> |
getWishlistOrdersForSelectiveCart()
Gets order entries that are converted from Wishlist2EntryModel
|
protected void |
removeWishlistEntryAndUpdateAddToCartTime(Wishlist2Model wishlistForSelectiveCart,
ProductModel product,
Wishlist2EntryModel wishlistEntry) |
void |
removeWishlistEntryForProduct(java.lang.String productCode)
Removes the entry from wishlist by product code
|
void |
setCartFacade(CartFacade cartFacade) |
void |
setProductService(ProductService productService) |
void |
setSelectiveCartService(SelectiveCartService selectiveCartService) |
void |
setWishlish2EntryModelToOrderEntryConverter(Converter<Wishlist2EntryModel,OrderEntryData> wishlish2EntryModelToOrderEntryConverter) |
void |
setWishlistConverter(Converter<Wishlist2Model,Wishlist2Data> wishlistConverter) |
void |
updateCartFromWishlist()
Removes the entry from wishlist and adds wishlist entry to cart as a cart entry
|
public Wishlist2Data getWishlistForSelectiveCart()
SelectiveCartFacadegetWishlistForSelectiveCart in interface SelectiveCartFacadepublic void removeWishlistEntryForProduct(java.lang.String productCode)
SelectiveCartFacaderemoveWishlistEntryForProduct in interface SelectiveCartFacadeproductCode - the product code used for removing entrypublic void updateCartFromWishlist()
throws CommerceCartModificationException
SelectiveCartFacadeupdateCartFromWishlist in interface SelectiveCartFacadeCommerceCartModificationException - throws when cart could not be modifiedpublic void addToCartFromWishlist(java.lang.String productCode)
throws CommerceCartModificationException
SelectiveCartFacadeaddToCartFromWishlist in interface SelectiveCartFacadeproductCode - the product code used for getting entry from wishlistCommerceCartModificationException - throws when removing wish list entry errorprotected void removeWishlistEntryAndUpdateAddToCartTime(Wishlist2Model wishlistForSelectiveCart, ProductModel product, Wishlist2EntryModel wishlistEntry) throws CommerceCartModificationException
public void addToWishlistFromCart(OrderEntryData orderEntry) throws CommerceCartModificationException
SelectiveCartFacadeaddToWishlistFromCart in interface SelectiveCartFacadeorderEntry - the order entry dataCommerceCartModificationException - throws when cart could not be modifiedpublic void addToWishlistFromCart(java.lang.Integer entryNumber)
throws CommerceCartModificationException
SelectiveCartFacadeaddToWishlistFromCart in interface SelectiveCartFacadeentryNumber - the entry number used for getting cart entryCommerceCartModificationException - throws when cart could not be modifiedpublic void addToWishlistFromCart(java.util.List<java.lang.String> productCodes)
throws CommerceCartModificationException
SelectiveCartFacadeaddToWishlistFromCart in interface SelectiveCartFacadeproductCodes - the product code list used for getting product data from cart entryCommerceCartModificationException - throws when the cart could not be modifiedpublic java.util.List<OrderEntryData> getWishlistOrdersForSelectiveCart()
SelectiveCartFacadegetWishlistOrdersForSelectiveCart in interface SelectiveCartFacadeprotected SelectiveCartService getSelectiveCartService()
public void setSelectiveCartService(SelectiveCartService selectiveCartService)
protected Converter<Wishlist2Model,Wishlist2Data> getWishlistConverter()
public void setWishlistConverter(Converter<Wishlist2Model,Wishlist2Data> wishlistConverter)
protected ProductService getProductService()
public void setProductService(ProductService productService)
protected CartFacade getCartFacade()
public void setCartFacade(CartFacade cartFacade)
public Converter<Wishlist2EntryModel,OrderEntryData> getWishlish2EntryModelToOrderEntryConverter()
public void setWishlish2EntryModelToOrderEntryConverter(Converter<Wishlist2EntryModel,OrderEntryData> wishlish2EntryModelToOrderEntryConverter)
Copyright © 2018 SAP SE. All Rights Reserved.