public class DefaultCartVersionValidationService extends Object implements CartVersionValidationService
CartVersionValidationService
that uses
CartValidationProperties
to decide whether or not to validate cart versions within this
service.Constructor and Description |
---|
DefaultCartVersionValidationService(CartValidationProperties properties) |
Modifier and Type | Method and 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) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
versionIsStale
public DefaultCartVersionValidationService(CartValidationProperties properties)
public void validateVersionForRead(com.broadleafcommerce.cart.client.domain.Cart cart, @Nullable Integer versionToTest)
validateVersionForRead
in interface CartVersionValidationService
public void validateVersionForUpdate(com.broadleafcommerce.cart.client.domain.Cart cart, @Nullable Integer versionToTest)
validateVersionForUpdate
in interface CartVersionValidationService
protected CartValidationProperties getProperties()
Copyright © 2021. All rights reserved.