Class CartValidationProperties.Version
- java.lang.Object
-
- com.broadleafcommerce.cartoperation.web.autoconfigure.CartValidationProperties.Version
-
- Enclosing class:
- CartValidationProperties
public static class CartValidationProperties.Version extends Object
Describes configuration for controlling validation that should apply to the version for carts.
-
-
Constructor Summary
Constructors Constructor Description Version()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
canEqual(Object other)
boolean
equals(Object o)
int
hashCode()
boolean
isEnabled()
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.String
toString()
-
-
-
Method Detail
-
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.
-
canEqual
protected boolean canEqual(Object other)
-
-