Class DefaultSelectiveCartFacade
java.lang.Object
de.hybris.platform.selectivecartfacades.impl.DefaultSelectiveCartFacade
- All Implemented Interfaces:
SelectiveCartFacade
Default implementation of
SelectiveCartFacade-
Constructor Summary
Constructors -
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 wishlistprotected CartFacadeprotected ProductServiceprotected SelectiveCartServiceprotected Converter<Wishlist2Model,Wishlist2Data> Gets the wishlist2data for selective cart of the current userGets order entries that are converted from Wishlist2EntryModelprotected voidremoveWishlistEntryAndUpdateAddToCartTime(Wishlist2Model wishlistForSelectiveCart, ProductModel product, Wishlist2EntryModel wishlistEntry) voidremoveWishlistEntryForProduct(String productCode) Removes the entry from wishlist by product codevoidsetCartFacade(CartFacade cartFacade) voidsetProductService(ProductService productService) voidsetSelectiveCartService(SelectiveCartService selectiveCartService) voidsetWishlish2EntryModelToOrderEntryConverter(Converter<Wishlist2EntryModel, OrderEntryData> wishlish2EntryModelToOrderEntryConverter) voidsetWishlistConverter(Converter<Wishlist2Model, Wishlist2Data> wishlistConverter) voidRemoves the entry from wishlist and adds wishlist entry to cart as a cart entry
-
Constructor Details
-
DefaultSelectiveCartFacade
public DefaultSelectiveCartFacade()
-
-
Method Details
-
getWishlistForSelectiveCart
Description copied from interface:SelectiveCartFacadeGets the wishlist2data for selective cart of the current user- Specified by:
getWishlistForSelectiveCartin interfaceSelectiveCartFacade- Returns:
- the Wishlist2Data
-
removeWishlistEntryForProduct
Description copied from interface:SelectiveCartFacadeRemoves the entry from wishlist by product code- Specified by:
removeWishlistEntryForProductin interfaceSelectiveCartFacade- Parameters:
productCode- the product code used for removing entry
-
updateCartFromWishlist
Description copied from interface:SelectiveCartFacadeRemoves the entry from wishlist and adds wishlist entry to cart as a cart entry- Specified by:
updateCartFromWishlistin interfaceSelectiveCartFacade- Throws:
CommerceCartModificationException- throws when cart could not be modified
-
addToCartFromWishlist
Description copied from interface:SelectiveCartFacadeRemoves the entry from wishlist and adds wishlist entry to cart as a cart entry- Specified by:
addToCartFromWishlistin interfaceSelectiveCartFacade- Parameters:
productCode- the product code used for getting entry from wishlist- Throws:
CommerceCartModificationException- throws when removing wish list entry error
-
removeWishlistEntryAndUpdateAddToCartTime
protected void removeWishlistEntryAndUpdateAddToCartTime(Wishlist2Model wishlistForSelectiveCart, ProductModel product, Wishlist2EntryModel wishlistEntry) throws CommerceCartModificationException -
addToWishlistFromCart
public void addToWishlistFromCart(OrderEntryData orderEntry) throws CommerceCartModificationException Description copied from interface:SelectiveCartFacadeRemoves the entry from cart and adds cart entry to wishlist- Specified by:
addToWishlistFromCartin interfaceSelectiveCartFacade- Parameters:
orderEntry- the order entry data- Throws:
CommerceCartModificationException- throws when cart could not be modified
-
addToWishlistFromCart
Description copied from interface:SelectiveCartFacadeRemoves the entry from cart and adds cart entry to wishlist- Specified by:
addToWishlistFromCartin interfaceSelectiveCartFacade- Parameters:
entryNumber- the entry number used for getting cart entry- Throws:
CommerceCartModificationException- throws when cart could not be modified
-
addToWishlistFromCart
public void addToWishlistFromCart(List<String> productCodes) throws CommerceCartModificationException Description copied from interface:SelectiveCartFacadeRemoves the entry from cart and adds the entry to wishlist- Specified by:
addToWishlistFromCartin interfaceSelectiveCartFacade- 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
Description copied from interface:SelectiveCartFacadeGets order entries that are converted from Wishlist2EntryModel- Specified by:
getWishlistOrdersForSelectiveCartin interfaceSelectiveCartFacade- Returns:
- the list of OrderEntryData
-
getSelectiveCartService
-
setSelectiveCartService
-
getWishlistConverter
-
setWishlistConverter
-
getProductService
-
setProductService
-
getCartFacade
-
setCartFacade
-
getWishlish2EntryModelToOrderEntryConverter
-
setWishlish2EntryModelToOrderEntryConverter
public void setWishlish2EntryModelToOrderEntryConverter(Converter<Wishlist2EntryModel, OrderEntryData> wishlish2EntryModelToOrderEntryConverter)
-