Class CartValidationProperties
java.lang.Object
com.broadleafcommerce.cart.service.autoconfigure.CartValidationProperties
@ConfigurationProperties(prefix="broadleaf.cart.validation.cart")
public class CartValidationProperties
extends Object
Properties used to define configuration for
Cart
validation.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
The maximum number of unique cart items that a single cart can hold.boolean
Value that determines if the number of unique items in a cart should be limited.void
setMaxNumberOfUniqueCartItems
(int maxNumberOfUniqueCartItems) The maximum number of unique cart items that a single cart can hold.void
setShouldLimitNumberOfUniqueCartItems
(boolean shouldLimitNumberOfUniqueCartItems) Value that determines if the number of unique items in a cart should be limited.
-
Constructor Details
-
CartValidationProperties
public CartValidationProperties()
-
-
Method Details
-
isShouldLimitNumberOfUniqueCartItems
public boolean isShouldLimitNumberOfUniqueCartItems()Value that determines if the number of unique items in a cart should be limited. If the value is true, then the max number of unique items is set by maxNumberOfUniqueCartItems, otherwise there is no limit enforced. -
getMaxNumberOfUniqueCartItems
public int getMaxNumberOfUniqueCartItems()The maximum number of unique cart items that a single cart can hold. If shouldLimitNumberOfUniqueCartItems is false, then this value does nothing. -
setShouldLimitNumberOfUniqueCartItems
public void setShouldLimitNumberOfUniqueCartItems(boolean shouldLimitNumberOfUniqueCartItems) Value that determines if the number of unique items in a cart should be limited. If the value is true, then the max number of unique items is set by maxNumberOfUniqueCartItems, otherwise there is no limit enforced. -
setMaxNumberOfUniqueCartItems
public void setMaxNumberOfUniqueCartItems(int maxNumberOfUniqueCartItems) The maximum number of unique cart items that a single cart can hold. If shouldLimitNumberOfUniqueCartItems is false, then this value does nothing.
-