Class DefaultCartVersionValidationService
- java.lang.Object
-
- com.broadleafcommerce.cartoperation.service.DefaultCartVersionValidationService
-
- All Implemented Interfaces:
CartVersionValidationService
public class DefaultCartVersionValidationService extends Object implements CartVersionValidationService
The default implementation ofCartVersionValidationService
that usesCartValidationProperties
to decide whether or not to validate cart versions within this service.- Author:
- Nick Crum (ncrum)
-
-
Constructor Summary
Constructors Constructor Description DefaultCartVersionValidationService(CartValidationProperties properties)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected CartValidationProperties
getProperties()
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 Detail
-
DefaultCartVersionValidationService
public DefaultCartVersionValidationService(CartValidationProperties properties)
-
-
Method Detail
-
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
protected CartValidationProperties getProperties()
-
-