public class DefaultSelectiveCartService extends java.lang.Object implements SelectiveCartService
SelectiveCartService| Constructor and Description |
|---|
DefaultSelectiveCartService() |
| Modifier and Type | Method and Description |
|---|---|
Wishlist2Model |
createWishlist()
Creates a wish list for the current customer
|
protected UserModel |
getCurrentUser() |
protected ModelService |
getModelService() |
protected SelectiveCartDao |
getSelectiveCartDao() |
Wishlist2EntryModel |
getWishlistEntryForProduct(ProductModel product)
Gets wishlist entry by product code
|
Wishlist2EntryModel |
getWishlistEntryForProduct(ProductModel product,
Wishlist2Model wishlist)
Gets wishlist entry by product code and wishlist
|
Wishlist2Model |
getWishlistForSelectiveCart()
Gets wishlist for selective cart and the current user
|
protected Wishlist2Service |
getWishlistService() |
void |
removeWishlistEntryForProduct(ProductModel product,
Wishlist2Model wishlist)
Removes wishlist entry by product code and wishlist
|
Wishlist2EntryModel |
saveWishlistEntryForProduct(ProductModel product,
Wishlist2Model wishlist,
java.util.Date addToCartTime)
Saves wishlist entry and addToCartTime by product and wishlist
|
void |
setModelService(ModelService modelService) |
void |
setSelectiveCartDao(SelectiveCartDao selectiveCartDao) |
void |
setWishlistService(Wishlist2Service wishlistService) |
void |
updateCartTimeForOrderEntry(java.lang.String cartCode,
int entryNumber,
java.util.Date addToCartTime)
Updates to the original addToCartTime when moving the wishlist entry from cart
|
void |
updateQuantityForWishlistEntry(Wishlist2EntryModel wishlistEntry,
java.lang.Integer quantity)
Updates the quantity of the give wishlist entry
|
public Wishlist2Model getWishlistForSelectiveCart()
SelectiveCartServicegetWishlistForSelectiveCart in interface SelectiveCartServicepublic Wishlist2EntryModel getWishlistEntryForProduct(ProductModel product)
SelectiveCartServicegetWishlistEntryForProduct in interface SelectiveCartServiceproduct - the product codepublic Wishlist2EntryModel getWishlistEntryForProduct(ProductModel product, Wishlist2Model wishlist)
SelectiveCartServicegetWishlistEntryForProduct in interface SelectiveCartServiceproduct - the product codewishlist - the wishlist modelpublic void removeWishlistEntryForProduct(ProductModel product, Wishlist2Model wishlist)
SelectiveCartServiceremoveWishlistEntryForProduct in interface SelectiveCartServiceproduct - the product codewishlist - the wishlist modelpublic void updateQuantityForWishlistEntry(Wishlist2EntryModel wishlistEntry, java.lang.Integer quantity)
SelectiveCartServiceupdateQuantityForWishlistEntry in interface SelectiveCartServicewishlistEntry - the wishlist entry modelquantity - 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 product codewishlist - the wishlist modeladdToCartTime - 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 used for getting cart entryentryNumber - the entry number used for getting cart entryaddToCartTime - the new "added to cart" timeprotected 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.