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 SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionintThe maximum number of unique cart items that a single cart can hold.booleanValue that determines if the number of unique items in a cart should be limited.voidsetMaxNumberOfUniqueCartItems(int maxNumberOfUniqueCartItems) The maximum number of unique cart items that a single cart can hold.voidsetShouldLimitNumberOfUniqueCartItems(boolean shouldLimitNumberOfUniqueCartItems) Value that determines if the number of unique items in a cart should be limited.
- 
Constructor Details- 
CartValidationPropertiespublic CartValidationProperties()
 
- 
- 
Method Details- 
isShouldLimitNumberOfUniqueCartItemspublic 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.
- 
getMaxNumberOfUniqueCartItemspublic int getMaxNumberOfUniqueCartItems()The maximum number of unique cart items that a single cart can hold. If shouldLimitNumberOfUniqueCartItems is false, then this value does nothing.
- 
setShouldLimitNumberOfUniqueCartItemspublic 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.
- 
setMaxNumberOfUniqueCartItemspublic 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.
 
-