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 forCart
validation.
-
-
Constructor Summary
Constructors Constructor Description CartValidationProperties()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getMaxNumberOfUniqueCartItems()
The maximum number of unique cart items that a single cart can hold.boolean
isShouldLimitNumberOfUniqueCartItems()
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.
-
-
-
Method Detail
-
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.
-
-