Class CartValidationProperties.Version
java.lang.Object
com.broadleafcommerce.cartoperation.web.autoconfigure.CartValidationProperties.Version
- Enclosing class:
- CartValidationProperties
Describes configuration for controlling validation that should apply to the version for
carts.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
int
hashCode()
boolean
When enabled, this service will enforce the version for any requests that modify the cart.void
setEnabled
(boolean enabled) When enabled, this service will enforce the version for any requests that modify the cart.toString()
-
Constructor Details
-
Version
public Version()
-
-
Method Details
-
isEnabled
public boolean isEnabled()When enabled, this service will enforce the version for any requests that modify the cart. The version must be included as part of the request body and cart cookie. If the provided version is not provided or not the latest version when this is enabled, an error will occur. Note that disabling this does not completely disable version enforcement for carts. The cart service still uses the version for optimistic locking. Disabling this will only prevent the cart operations service from throwing its own errors. -
setEnabled
public void setEnabled(boolean enabled) When enabled, this service will enforce the version for any requests that modify the cart. The version must be included as part of the request body and cart cookie. If the provided version is not provided or not the latest version when this is enabled, an error will occur. Note that disabling this does not completely disable version enforcement for carts. The cart service still uses the version for optimistic locking. Disabling this will only prevent the cart operations service from throwing its own errors. -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-