public class DefaultSelectiveCartService extends java.lang.Object implements SelectiveCartService
SelectiveCartService| Constructor and Description |
|---|
DefaultSelectiveCartService() |
| Modifier and Type | Method and Description |
|---|---|
Wishlist2Model |
createWishlist()
create a wish list for current customer
|
protected UserModel |
getCurrentUser() |
protected ModelService |
getModelService() |
protected SelectiveCartDao |
getSelectiveCartDao() |
Wishlist2EntryModel |
getWishlistEntryForProduct(ProductModel product)
get wishlist entry based on a product in given wishlist
|
Wishlist2EntryModel |
getWishlistEntryForProduct(ProductModel product,
Wishlist2Model wishlist)
get wishlist entry based on a product in given wishlist
|
Wishlist2Model |
getWishlistForSelectiveCart()
get wishlist for selective-cart and current user
|
protected Wishlist2Service |
getWishlistService() |
void |
removeWishlistEntryForProduct(ProductModel product,
Wishlist2Model wishlist)
remove wishlist entry based on a product in given wishlist
|
Wishlist2EntryModel |
saveWishlistEntryForProduct(ProductModel product,
Wishlist2Model wishlist,
java.util.Date addToCartTime)
save wishlist entry based on a product in given wishlist and save addToCartTime also
|
void |
setModelService(ModelService modelService) |
void |
setSelectiveCartDao(SelectiveCartDao selectiveCartDao) |
void |
setWishlistService(Wishlist2Service wishlistService) |
void |
updateCartTimeForOrderEntry(java.lang.String cartCode,
int entryNumber,
java.util.Date addToCartTime)
update to the original addToCartTime when move the wishlistentry to cart
|
void |
updateQuantityForWishlistEntry(Wishlist2EntryModel wishlistEntry,
java.lang.Integer quantity)
update the quantity of the give wishlist entry
|
public Wishlist2Model getWishlistForSelectiveCart()
SelectiveCartServicegetWishlistForSelectiveCart in interface SelectiveCartServicepublic Wishlist2EntryModel getWishlistEntryForProduct(ProductModel product)
SelectiveCartServicegetWishlistEntryForProduct in interface SelectiveCartServiceproduct - the given productpublic Wishlist2EntryModel getWishlistEntryForProduct(ProductModel product, Wishlist2Model wishlist)
SelectiveCartServicegetWishlistEntryForProduct in interface SelectiveCartServiceproduct - the given productwishlist - the given wishlistpublic void removeWishlistEntryForProduct(ProductModel product, Wishlist2Model wishlist)
SelectiveCartServiceremoveWishlistEntryForProduct in interface SelectiveCartServiceproduct - the given productwishlist - the given wishlistpublic void updateQuantityForWishlistEntry(Wishlist2EntryModel wishlistEntry, java.lang.Integer quantity)
SelectiveCartServiceupdateQuantityForWishlistEntry in interface SelectiveCartServicewishlistEntry - the given wishlistquantity - the total number of quantitypublic Wishlist2Model createWishlist()
SelectiveCartServicecreateWishlist in interface SelectiveCartServicepublic Wishlist2EntryModel saveWishlistEntryForProduct(ProductModel product, Wishlist2Model wishlist, java.util.Date addToCartTime)
SelectiveCartServicesaveWishlistEntryForProduct in interface SelectiveCartServiceproduct - the given productwishlist - the given wishlistaddToCartTime - the added to cart time for a wishlist entrypublic void updateCartTimeForOrderEntry(java.lang.String cartCode,
int entryNumber,
java.util.Date addToCartTime)
SelectiveCartServiceupdateCartTimeForOrderEntry in interface SelectiveCartServicecartCode - the cart code returned when modify cartentryNumber - the entry number returned when modify cartaddToCartTime - the added to cart time for a wishlist entryprotected UserModel getCurrentUser()
protected SelectiveCartDao getSelectiveCartDao()
public void setSelectiveCartDao(SelectiveCartDao selectiveCartDao)
protected ModelService getModelService()
public void setModelService(ModelService modelService)
protected Wishlist2Service getWishlistService()
public void setWishlistService(Wishlist2Service wishlistService)
Copyright © 2018 SAP SE. All Rights Reserved.