public class DefaultCommerceUpdateCartEntryStrategy extends AbstractCommerceCartStrategy implements CommerceUpdateCartEntryStrategy
DEFAULT_FORCE_IN_STOCK_MAX_QUANTITY, forceInStockMaxQuantity| Constructor and Description |
|---|
DefaultCommerceUpdateCartEntryStrategy() |
checkCartLevel, 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 DefaultCommerceUpdateCartEntryStrategy()
public CommerceCartModification updateQuantityForCartEntry(CommerceCartParameter parameters) throws CommerceCartModificationException
CommerceUpdateCartEntryStrategyupdateQuantityForCartEntry in interface CommerceUpdateCartEntryStrategyparameters - the parametersCommerceCartModificationException - the commerce cart modification exceptionpublic CommerceCartModification updatePointOfServiceForCartEntry(CommerceCartParameter parameters) throws CommerceCartModificationException
CommerceUpdateCartEntryStrategyupdatePointOfServiceForCartEntry in interface CommerceUpdateCartEntryStrategyparameters - the parametersCommerceCartModificationException - the commerce cart modification exceptionpublic CommerceCartModification updateToShippingModeForCartEntry(CommerceCartParameter parameters) throws CommerceCartModificationException
CommerceUpdateCartEntryStrategyupdateToShippingModeForCartEntry in interface CommerceUpdateCartEntryStrategyparameters - the parametersCommerceCartModificationException - the commerce cart modification exceptionprotected CommerceCartModification mergeEntries(AbstractOrderEntryModel mergeCandidate, AbstractOrderEntryModel mergeTarget, CartModel cart) throws CommerceCartModificationException
protected void validateEntryBeforeSetShippingMode(AbstractOrderEntryModel entryToUpdate) throws CommerceCartModificationException
protected void validateEntryBeforeModification(long newQuantity,
AbstractOrderEntryModel entryToUpdate)
throws CommerceCartModificationException
protected CommerceCartModification modifyEntry(CartModel cartModel, AbstractOrderEntryModel entryToUpdate, long actualAllowedQuantityChange, long newQuantity, java.lang.Integer maxOrderQuantity)
protected void beforeUpdateCartEntry(CommerceCartParameter parameter)
protected void afterUpdateCartEntry(CommerceCartParameter parameter, CommerceCartModification result)
protected java.util.List<CommerceUpdateCartEntryHook> getCommerceUpdateCartEntryHooks()
public void setCommerceUpdateCartEntryHooks(java.util.List<CommerceUpdateCartEntryHook> commerceUpdateCartEntryHooks)
protected ConfigurationService getConfigurationService()
public void setConfigurationService(ConfigurationService configurationService)
protected EntryMergeStrategy getEntryMergeStrategy()
public void setEntryMergeStrategy(EntryMergeStrategy entryMergeStrategy)
Copyright © 2018 SAP SE. All Rights Reserved.