Class DefaultCartValidationStrategy
java.lang.Object
de.hybris.platform.commerceservices.strategies.impl.DefaultCartValidationStrategy
- All Implemented Interfaces:
CartCleanStrategy,CartValidationStrategy
- Direct Known Subclasses:
DefaultB2BCartValidationStrategy
public class DefaultCartValidationStrategy
extends Object
implements CartValidationStrategy, CartCleanStrategy
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidafterValidateCart(CommerceCartParameter parameter, List<CommerceCartModification> modifications) protected voidbeforeValidateCart(CommerceCartParameter parameter, List<CommerceCartModification> modifications) voidprotected longgetCartLevel(CartEntryModel cartEntryModel, CartModel cartModel) protected List<CartValidationHook>protected ConfigurationServiceprotected CartEntryModelgetExistingShipCartEntryForProduct(CartModel cartModel, ProductModel product) protected LonggetStockLevel(CartEntryModel cartEntryModel) protected UserServiceprotected booleanhasConfigurationErrors(CartEntryModel cartEntryModel) protected booleanhasPointOfService(CartEntryModel cartEntryModel) protected booleanisGuestUserCart(CartModel cartModel) protected booleanisProductNotAvailableInPOS(CartEntryModel cartEntryModel, Long stockLevel) voidsetBaseStoreService(BaseStoreService baseStoreService) voidsetCartService(CartService cartService) voidsetCartValidationHooks(List<CartValidationHook> cartValidationHooks) voidsetCommerceStockService(CommerceStockService commerceStockService) voidsetConfigurationService(ConfigurationService configurationService) voidsetModelService(ModelService modelService) voidsetProductService(ProductService productService) voidsetUserService(UserService userService) validateCart(CommerceCartParameter parameter) validateCart(CartModel cartModel) Deprecated, for removal: This API element is subject to removal in a future version.Since 5.2.protected CommerceCartModificationvalidateCartEntry(CartModel cartModel, CartEntryModel cartEntryModel) protected voidvalidateDelivery(CartModel cartModel) protected voidvalidatePayment(CartModel cartModel)
-
Constructor Details
-
DefaultCartValidationStrategy
public DefaultCartValidationStrategy()
-
-
Method Details
-
validateCartEntry
protected CommerceCartModification validateCartEntry(CartModel cartModel, CartEntryModel cartEntryModel) -
getExistingShipCartEntryForProduct
protected CartEntryModel getExistingShipCartEntryForProduct(CartModel cartModel, ProductModel product) -
isProductNotAvailableInPOS
-
validateDelivery
-
validatePayment
-
isGuestUserCart
-
hasConfigurationErrors
-
validateCart
@Deprecated(since="5.2", forRemoval=true) public List<CommerceCartModification> validateCart(CartModel cartModel) Deprecated, for removal: This API element is subject to removal in a future version.Since 5.2.- Specified by:
validateCartin interfaceCartValidationStrategy
-
validateCart
- Specified by:
validateCartin interfaceCartValidationStrategy
-
beforeValidateCart
protected void beforeValidateCart(CommerceCartParameter parameter, List<CommerceCartModification> modifications) -
afterValidateCart
protected void afterValidateCart(CommerceCartParameter parameter, List<CommerceCartModification> modifications) -
cleanCart
- Specified by:
cleanCartin interfaceCartCleanStrategy
-
getStockLevel
-
hasPointOfService
-
getCartLevel
-
getModelService
-
setModelService
-
getCartService
-
setCartService
-
getProductService
-
setProductService
-
getCommerceStockService
-
setCommerceStockService
-
getBaseStoreService
-
setBaseStoreService
-
getUserService
-
setUserService
-
getCartValidationHooks
-
setCartValidationHooks
-
getConfigurationService
-
setConfigurationService
-