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
@Deprecated(since="2205",
forRemoval=true)
public class ProductConfigAddToCartStrategy
extends DefaultCommerceAddToCartStrategy
Deprecated, for removal: This API element is subject to removal in a future version.
since 22.05 release due to the newly implemented AddToCartValidator to especially support configurable
products
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_LASTFields inherited from class de.hybris.platform.commerceservices.order.impl.AbstractCommerceCartStrategy
DEFAULT_FORCE_IN_STOCK_MAX_QUANTITY, forceInStockMaxQuantity -
Constructor Summary
ConstructorsConstructorDescriptionDeprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionprotected CommerceCartModificationdoAddToCart(CommerceCartParameter parameter) Deprecated, for removal: This API element is subject to removal in a future version.Do add to cart.Deprecated, for removal: This API element is subject to removal in a future version.protected CPQConfigurableCheckerDeprecated, for removal: This API element is subject to removal in a future version.voidsetAbstractOrderEntryLinkStrategy(ConfigurationAbstractOrderEntryLinkStrategy abstractOrderEntryLinkStrategy) Deprecated, for removal: This API element is subject to removal in a future version.voidsetCpqConfigurableChecker(CPQConfigurableChecker cpqConfigurableChecker) Deprecated, for removal: This API element is subject to removal in a future version.protected voidvalidateAddToCart(CommerceCartParameter parameters) Deprecated, for removal: This API element is subject to removal in a future version.Methods inherited from class de.hybris.platform.commerceservices.order.impl.DefaultCommerceAddToCartStrategy
addCartEntry, addToCart, addToCart, createAddToCartResp, createEmptyCartEntry, getEntryMergeStrategy, getStatusCodeAllowedQuantityChange, getStatusCodeForNotAllowedQuantityChange, getUnit, isProductForCode, mergeEntry, setEntryMergeStrategyMethods inherited from class de.hybris.platform.commerceservices.order.impl.AbstractCommerceAddToCartStrategy
afterAddToCart, beforeAddToCart, getAddToCartValidators, getCommerceAddToCartMethodHooks, getConfigurationService, getFallbackAddToCartValidator, setAddToCartValidators, setCommerceAddToCartMethodHooks, setConfigurationService, setFallbackAddToCartValidatorMethods 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
-
Constructor Details
-
ProductConfigAddToCartStrategy
public ProductConfigAddToCartStrategy()Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
validateAddToCart
protected void validateAddToCart(CommerceCartParameter parameters) throws CommerceCartModificationException Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
validateAddToCartin classAbstractCommerceAddToCartStrategy- Throws:
CommerceCartModificationException
-
doAddToCart
protected CommerceCartModification doAddToCart(CommerceCartParameter parameter) throws CommerceCartModificationException Deprecated, for removal: This API element is subject to removal in a future version.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
Deprecated, for removal: This API element is subject to removal in a future version. -
setCpqConfigurableChecker
@Deprecated(since="2205", forRemoval=true) public void setCpqConfigurableChecker(CPQConfigurableChecker cpqConfigurableChecker) Deprecated, for removal: This API element is subject to removal in a future version.Set helper, to check if the related product is CPQ configurable- Parameters:
cpqConfigurableChecker- configurator checker
-
getAbstractOrderEntryLinkStrategy
Deprecated, for removal: This API element is subject to removal in a future version. -
setAbstractOrderEntryLinkStrategy
@Deprecated(since="2205", forRemoval=true) public void setAbstractOrderEntryLinkStrategy(ConfigurationAbstractOrderEntryLinkStrategy abstractOrderEntryLinkStrategy) Deprecated, for removal: This API element is subject to removal in a future version.- Parameters:
abstractOrderEntryLinkStrategy-
-