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 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

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object