Class DefaultCartVersionValidationService
java.lang.Object
com.broadleafcommerce.cartoperation.service.DefaultCartVersionValidationService
- All Implemented Interfaces:
CartVersionValidationService
public class DefaultCartVersionValidationService
extends Object
implements CartVersionValidationService
The default implementation of
CartVersionValidationService
that uses
CartValidationProperties
to decide whether or not to validate cart versions within this
service.- Author:
- Nick Crum (ncrum)
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected CartValidationProperties
void
validateVersionForRead
(com.broadleafcommerce.cart.client.domain.Cart cart, Integer versionToTest) void
validateVersionForUpdate
(com.broadleafcommerce.cart.client.domain.Cart cart, Integer versionToTest) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.broadleafcommerce.cartoperation.service.CartVersionValidationService
versionIsStale
-
Constructor Details
-
DefaultCartVersionValidationService
-
-
Method Details
-
validateVersionForRead
public void validateVersionForRead(com.broadleafcommerce.cart.client.domain.Cart cart, @Nullable Integer versionToTest) - Specified by:
validateVersionForRead
in interfaceCartVersionValidationService
-
validateVersionForUpdate
public void validateVersionForUpdate(com.broadleafcommerce.cart.client.domain.Cart cart, @Nullable Integer versionToTest) - Specified by:
validateVersionForUpdate
in interfaceCartVersionValidationService
-
getProperties
-