Class DefaultSelectiveCartService
java.lang.Object
de.hybris.platform.selectivecartservices.impl.DefaultSelectiveCartService
- All Implemented Interfaces:
SelectiveCartService
Default implementation of
SelectiveCartService-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreates a wish list for the current customerprotected UserModelprotected ModelServiceprotected SelectiveCartDaoFinds invisible saved cart for selective cartDeprecated, for removal: This API element is subject to removal in a future version.since 2005getWishlistEntryForProduct(ProductModel product) Gets wishlist entry by product codegetWishlistEntryForProduct(ProductModel product, Wishlist2Model wishlist) Gets wishlist entry by product code and wishlistGets wishlist for selective cart and the current userprotected Wishlist2ServicevoidremoveWishlistEntryForProduct(ProductModel product, Wishlist2Model wishlist) Removes wishlist entry by product code and wishlistsaveWishlistEntryForProduct(ProductModel product, Wishlist2Model wishlist, Date addToCartTime) Saves wishlist entry and addToCartTime by product and wishlistvoidsetModelService(ModelService modelService) voidsetSelectiveCartDao(SelectiveCartDao selectiveCartDao) voidsetWishlistService(Wishlist2Service wishlistService) voidupdateCartTimeForOrderEntry(String cartCode, int entryNumber, Date addToCartTime) Updates to the original addToCartTime when moving the wishlist entry from cartvoidupdateQuantityForWishlistEntry(Wishlist2EntryModel wishlistEntry, Integer quantity) Updates the quantity of the give wishlist entry
-
Constructor Details
-
DefaultSelectiveCartService
public DefaultSelectiveCartService()
-
-
Method Details
-
getWishlistForSelectiveCart
Description copied from interface:SelectiveCartServiceGets wishlist for selective cart and the current user- Specified by:
getWishlistForSelectiveCartin interfaceSelectiveCartService- Returns:
- the wishlist model
-
getWishlistEntryForProduct
Description copied from interface:SelectiveCartServiceGets wishlist entry by product code- Specified by:
getWishlistEntryForProductin interfaceSelectiveCartService- Parameters:
product- the product code- Returns:
- the wishlist entry model
-
getWishlistEntryForProduct
public Wishlist2EntryModel getWishlistEntryForProduct(ProductModel product, Wishlist2Model wishlist) Description copied from interface:SelectiveCartServiceGets wishlist entry by product code and wishlist- Specified by:
getWishlistEntryForProductin interfaceSelectiveCartService- Parameters:
product- the product codewishlist- the wishlist model- Returns:
- the wishlist entry model
-
removeWishlistEntryForProduct
Description copied from interface:SelectiveCartServiceRemoves wishlist entry by product code and wishlist- Specified by:
removeWishlistEntryForProductin interfaceSelectiveCartService- Parameters:
product- the product codewishlist- the wishlist model
-
updateQuantityForWishlistEntry
Description copied from interface:SelectiveCartServiceUpdates the quantity of the give wishlist entry- Specified by:
updateQuantityForWishlistEntryin interfaceSelectiveCartService- Parameters:
wishlistEntry- the wishlist entry modelquantity- the total number of quantity
-
createWishlist
Description copied from interface:SelectiveCartServiceCreates a wish list for the current customer- Specified by:
createWishlistin interfaceSelectiveCartService- Returns:
- the wishlist model
-
saveWishlistEntryForProduct
public Wishlist2EntryModel saveWishlistEntryForProduct(ProductModel product, Wishlist2Model wishlist, Date addToCartTime) Description copied from interface:SelectiveCartServiceSaves wishlist entry and addToCartTime by product and wishlist- Specified by:
saveWishlistEntryForProductin interfaceSelectiveCartService- Parameters:
product- the product codewishlist- the wishlist modeladdToCartTime- the added to cart time for a wishlist entry- Returns:
- the saved wishlist entry
-
updateCartTimeForOrderEntry
Description copied from interface:SelectiveCartServiceUpdates to the original addToCartTime when moving the wishlist entry from cart- Specified by:
updateCartTimeForOrderEntryin interfaceSelectiveCartService- Parameters:
cartCode- the cart code used for getting cart entryentryNumber- the entry number used for getting cart entryaddToCartTime- the new "added to cart" time
-
getSelectiveCartForUser
@Deprecated(since="2005", forRemoval=true) public Optional<CartModel> getSelectiveCartForUser(UserModel user) Deprecated, for removal: This API element is subject to removal in a future version.since 2005Description copied from interface:SelectiveCartServiceFinds invisible saved cart for selective cart- Specified by:
getSelectiveCartForUserin interfaceSelectiveCartService- Parameters:
user- the user- Returns:
- the Optional CartModel
-
getSelectiveCartForCode
Description copied from interface:SelectiveCartServiceFinds invisible saved cart for selective cart- Specified by:
getSelectiveCartForCodein interfaceSelectiveCartService- Parameters:
code- cart code- Returns:
- the Optional CartModel
-
getCurrentUser
-
getSelectiveCartDao
-
setSelectiveCartDao
-
getModelService
-
setModelService
-
getWishlistService
-
setWishlistService
-