Class DefaultSelectiveCartFacade
- java.lang.Object
-
- de.hybris.platform.selectivecartfacades.impl.DefaultSelectiveCartFacade
-
- All Implemented Interfaces:
SelectiveCartFacade
public class DefaultSelectiveCartFacade extends java.lang.Object implements SelectiveCartFacade
Default implementation ofSelectiveCartFacade
-
-
Constructor Summary
Constructors Constructor Description DefaultSelectiveCartFacade()
-
Method Summary
All Methods Instance Methods Concrete 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 wishlistprotected CartFacadegetCartFacade()protected ProductServicegetProductService()protected SelectiveCartServicegetSelectiveCartService()Converter<Wishlist2EntryModel,OrderEntryData>getWishlish2EntryModelToOrderEntryConverter()protected Converter<Wishlist2Model,Wishlist2Data>getWishlistConverter()Wishlist2DatagetWishlistForSelectiveCart()Gets the wishlist2data for selective cart of the current userjava.util.List<OrderEntryData>getWishlistOrdersForSelectiveCart()Gets order entries that are converted from Wishlist2EntryModelprotected voidremoveWishlistEntryAndUpdateAddToCartTime(Wishlist2Model wishlistForSelectiveCart, ProductModel product, Wishlist2EntryModel wishlistEntry)voidremoveWishlistEntryForProduct(java.lang.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)voidupdateCartFromWishlist()Removes the entry from wishlist and adds wishlist entry to cart as a cart entry
-
-
-
Method Detail
-
getWishlistForSelectiveCart
public Wishlist2Data getWishlistForSelectiveCart()
Description copied from interface:SelectiveCartFacadeGets the wishlist2data for selective cart of the current user- Specified by:
getWishlistForSelectiveCartin interfaceSelectiveCartFacade- Returns:
- the Wishlist2Data
-
removeWishlistEntryForProduct
public void removeWishlistEntryForProduct(java.lang.String productCode)
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
public void updateCartFromWishlist() throws CommerceCartModificationExceptionDescription 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
public void addToCartFromWishlist(java.lang.String productCode) throws CommerceCartModificationExceptionDescription 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
public void addToWishlistFromCart(java.lang.Integer entryNumber) throws CommerceCartModificationExceptionDescription 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(java.util.List<java.lang.String> productCodes) throws CommerceCartModificationExceptionDescription 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
public java.util.List<OrderEntryData> getWishlistOrdersForSelectiveCart()
Description copied from interface:SelectiveCartFacadeGets order entries that are converted from Wishlist2EntryModel- Specified by:
getWishlistOrdersForSelectiveCartin interfaceSelectiveCartFacade- Returns:
- the list of OrderEntryData
-
getSelectiveCartService
protected SelectiveCartService getSelectiveCartService()
-
setSelectiveCartService
public void setSelectiveCartService(SelectiveCartService selectiveCartService)
-
getWishlistConverter
protected Converter<Wishlist2Model,Wishlist2Data> getWishlistConverter()
-
setWishlistConverter
public void setWishlistConverter(Converter<Wishlist2Model,Wishlist2Data> wishlistConverter)
-
getProductService
protected ProductService getProductService()
-
setProductService
public void setProductService(ProductService productService)
-
getCartFacade
protected CartFacade getCartFacade()
-
setCartFacade
public void setCartFacade(CartFacade cartFacade)
-
getWishlish2EntryModelToOrderEntryConverter
public Converter<Wishlist2EntryModel,OrderEntryData> getWishlish2EntryModelToOrderEntryConverter()
-
setWishlish2EntryModelToOrderEntryConverter
public void setWishlish2EntryModelToOrderEntryConverter(Converter<Wishlist2EntryModel,OrderEntryData> wishlish2EntryModelToOrderEntryConverter)
-
-