public class DefaultCommerceSaveCartStrategy extends AbstractCommerceSaveCartStrategy
CommerceSaveCartStrategy. The provided
CommerceSaveCartParameter.cart (or if empty the session cart) is simply enriched with additional data to mark
it as a saved cart. The cart is not cloned.DEFAULT_FORCE_IN_STOCK_MAX_QUANTITY, forceInStockMaxQuantity| Constructor and Description |
|---|
DefaultCommerceSaveCartStrategy() |
| Modifier and Type | Method and Description |
|---|---|
protected java.util.Date |
calculateExpirationTime(java.util.Date currentDate) |
protected TimeService |
getTimeService() |
CommerceSaveCartResult |
saveCart(CommerceSaveCartParameter parameters)
Method for explicitly saving a cart along with additional parameters
|
void |
setTimeService(TimeService timeService) |
afterSaveCart, beforeSaveCart, getCommerceSaveCartMethodHooks, getConfigurationService, getUserService, setCommerceSaveCartMethodHooks, setConfigurationService, setUserService, validateSaveCart, validateSaveCartParameterscheckCartLevel, getAllowedCartAdjustmentForProduct, getAvailableStockLevel, getBaseStoreService, getCartEntryDao, getCartService, getCommerceCartCalculationStrategy, getCommerceStockService, getEntryForNumber, getEntryForProductAndPointOfService, getEntryOrderChecker, getForceInStockMaxQuantity, getModelService, getProductService, isMaxOrderQuantitySet, isOrderEntryUpdatable, isStockLevelSufficient, normalizeEntryNumbers, setBaseStoreService, setCartEntryDao, setCartService, setCommerceCartCalculationStrategy, setCommerceStockService, setEntryOrderChecker, setForceInStockMaxQuantity, setModelService, setProductServicepublic CommerceSaveCartResult saveCart(CommerceSaveCartParameter parameters) throws CommerceSaveCartException
CommerceSaveCartStrategyparameters - CommerceSaveCartParameter parameter object that holds the cart to be saved along with some
additional details such as a name and a description for this cartCommerceSaveCartResultCommerceSaveCartException - if cart cannot be savedprotected java.util.Date calculateExpirationTime(java.util.Date currentDate)
protected TimeService getTimeService()
public void setTimeService(TimeService timeService)
Copyright © 2018 SAP SE. All Rights Reserved.