Class ProductConfigAddToCartStrategy
- java.lang.Object
-
- de.hybris.platform.commerceservices.order.impl.AbstractCommerceCartStrategy
-
- de.hybris.platform.commerceservices.order.impl.AbstractCommerceAddToCartStrategy
-
- de.hybris.platform.commerceservices.order.impl.DefaultCommerceAddToCartStrategy
-
- de.hybris.platform.sap.productconfig.facades.strategy.ProductConfigAddToCartStrategy
-
- All Implemented Interfaces:
CommerceAddToCartStrategy
- Direct Known Subclasses:
CommerceConfigAddToCartStrategy
public class ProductConfigAddToCartStrategy extends DefaultCommerceAddToCartStrategy
Class implements special treatment for the configurable products Adds an item to the cart for the product with product configuration. Always put the basic product in the cart even if the variant exists. The product configuration does not supports variants handling
-
-
Field Summary
-
Fields inherited from class de.hybris.platform.commerceservices.order.impl.AbstractCommerceAddToCartStrategy
APPEND_AS_LAST
-
Fields inherited from class de.hybris.platform.commerceservices.order.impl.AbstractCommerceCartStrategy
DEFAULT_FORCE_IN_STOCK_MAX_QUANTITY, forceInStockMaxQuantity
-
-
Constructor Summary
Constructors Constructor Description ProductConfigAddToCartStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected CommerceCartModificationdoAddToCart(CommerceCartParameter parameter)Do add to cart.protected ConfigurationAbstractOrderEntryLinkStrategygetAbstractOrderEntryLinkStrategy()protected CPQConfigurableCheckergetCpqConfigurableChecker()voidsetAbstractOrderEntryLinkStrategy(ConfigurationAbstractOrderEntryLinkStrategy abstractOrderEntryLinkStrategy)voidsetCpqConfigurableChecker(CPQConfigurableChecker cpqConfigurableChecker)Set helper, to check if the related product is CPQ configurableprotected voidvalidateAddToCart(CommerceCartParameter parameters)-
Methods inherited from class de.hybris.platform.commerceservices.order.impl.DefaultCommerceAddToCartStrategy
addCartEntry, addToCart, addToCart, createAddToCartResp, createEmptyCartEntry, getEntryMergeStrategy, getStatusCodeAllowedQuantityChange, getStatusCodeForNotAllowedQuantityChange, getUnit, isProductForCode, mergeEntry, setEntryMergeStrategy
-
Methods inherited from class de.hybris.platform.commerceservices.order.impl.AbstractCommerceAddToCartStrategy
afterAddToCart, beforeAddToCart, getCommerceAddToCartMethodHooks, getConfigurationService, setCommerceAddToCartMethodHooks, setConfigurationService
-
Methods inherited from class de.hybris.platform.commerceservices.order.impl.AbstractCommerceCartStrategy
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, setProductService
-
-
-
-
Method Detail
-
validateAddToCart
protected void validateAddToCart(CommerceCartParameter parameters) throws CommerceCartModificationException
- Overrides:
validateAddToCartin classAbstractCommerceAddToCartStrategy- Throws:
CommerceCartModificationException
-
doAddToCart
protected CommerceCartModification doAddToCart(CommerceCartParameter parameter) throws CommerceCartModificationException
Description copied from class:DefaultCommerceAddToCartStrategyDo add to cart.- Overrides:
doAddToCartin classDefaultCommerceAddToCartStrategy- Parameters:
parameter- the parameter- Returns:
- the commerce cart modification
- Throws:
CommerceCartModificationException- the commerce cart modification exception
-
getCpqConfigurableChecker
protected CPQConfigurableChecker getCpqConfigurableChecker()
-
setCpqConfigurableChecker
public void setCpqConfigurableChecker(CPQConfigurableChecker cpqConfigurableChecker)
Set helper, to check if the related product is CPQ configurable- Parameters:
cpqConfigurableChecker- configurator checker
-
getAbstractOrderEntryLinkStrategy
protected ConfigurationAbstractOrderEntryLinkStrategy getAbstractOrderEntryLinkStrategy()
-
setAbstractOrderEntryLinkStrategy
public void setAbstractOrderEntryLinkStrategy(ConfigurationAbstractOrderEntryLinkStrategy abstractOrderEntryLinkStrategy)
- Parameters:
abstractOrderEntryLinkStrategy-
-
-