Interface SelectiveCartService
- All Known Implementing Classes:
DefaultSelectiveCartService
public interface SelectiveCartService
Deals with selective cart related Models using existing DAOs
-
Method Summary
Modifier and TypeMethodDescriptionCreates a wish list for the current customerFinds invisible saved cart for selective cartDeprecated, for removal: This API element is subject to removal in a future version.since 2005.getWishlistEntryForProduct(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 uservoidremoveWishlistEntryForProduct(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 wishlistvoidupdateCartTimeForOrderEntry(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
-
Method Details
-
getWishlistForSelectiveCart
Wishlist2Model getWishlistForSelectiveCart()Gets wishlist for selective cart and the current user- Returns:
- the wishlist model
-
getWishlistEntryForProduct
Gets wishlist entry by product code- Parameters:
product- the product code- Returns:
- the wishlist entry model
-
getWishlistEntryForProduct
Gets wishlist entry by product code and wishlist- Parameters:
product- the product codewishlist- the wishlist model- Returns:
- the wishlist entry model
-
removeWishlistEntryForProduct
Removes wishlist entry by product code and wishlist- Parameters:
product- the product codewishlist- the wishlist model
-
updateQuantityForWishlistEntry
Updates the quantity of the give wishlist entry- Parameters:
wishlistEntry- the wishlist entry modelquantity- the total number of quantity
-
createWishlist
Wishlist2Model createWishlist()Creates a wish list for the current customer- Returns:
- the wishlist model
-
saveWishlistEntryForProduct
Wishlist2EntryModel saveWishlistEntryForProduct(ProductModel product, Wishlist2Model wishlist, Date addToCartTime) Saves wishlist entry and addToCartTime by product and wishlist- Parameters:
product- the product codewishlist- the wishlist modeladdToCartTime- the added to cart time for a wishlist entry- Returns:
- the saved wishlist entry
-
updateCartTimeForOrderEntry
Updates to the original addToCartTime when moving the wishlist entry from cart- 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) Optional<CartModel> getSelectiveCartForUser(UserModel user) Deprecated, for removal: This API element is subject to removal in a future version.since 2005.Finds invisible saved cart for selective cart- Parameters:
user- the user- Returns:
- the Optional CartModel
-
getSelectiveCartForCode
Finds invisible saved cart for selective cart- Parameters:
code- cart codeuser- the user- Returns:
- the Optional CartModel
-