Enum Class CartItemConfigurationErrorEnum
java.lang.Object
java.lang.Enum<CartItemConfigurationErrorEnum>
com.broadleafcommerce.cartoperation.service.CartItemConfigurationErrorEnum
- All Implemented Interfaces:
Serializable
,Comparable<CartItemConfigurationErrorEnum>
,Constable
Enumerations to drive configuration errors for cart items.
- Author:
- Chad Harchar (charchar)
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionThe error for when aCartItem
has attribute choices but it shouldn't.The error for when aCartItem
has dependent items but it shouldn't.The error for when there are too many dependent cart items such as in the case ofIncludedProducts
andItemChoice ProductOptions
The error for when there aren't enough dependent cart items such as in the case ofIncludedProducts
andItemChoice ProductOptions
The error for when the quantity of a free giftCartItem
is being changed.The error for a generic configuration error.The error for when the item type is invalid for the current cart.The fulfillment option for an item becomes invalid due to an address change, so the fulfillment option gets reset to a default value from the options available to the address.Not really a "configuration" issue, but a validation none-the-less.The error for when the maximum quantity of a certain item is exceeded.The error for when the minimum quantity of a certain item is not met.The error for when one or more misconfigured dependent items are found for an item.The error for when the item type is "selector" which cannot be added to the cart.The error for when one or more mismatched dependent items are found for an item.The error for when no matching allowed value is found.The error for when no matching variant is found.Validation issue where the quantity of a dependent of a cart item is not greater than zero.Validation issue where the quantity of the cart item being added is not greater than zero.Validation issue where no price is available for the item being added.The error for a missing required attribute.The error for when one or more required attributes are missing for an item.The error for when an item cannot be sold individually. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static CartItemConfigurationErrorEnum[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
GENERIC_ERROR
The error for a generic configuration error. -
NONPOSITIVE_QUANTITY
Validation issue where the quantity of the cart item being added is not greater than zero. -
NONPOSITIVE_DEPENDENT_ITEM_QUANTITY
Validation issue where the quantity of a dependent of a cart item is not greater than zero. -
REQUIRED_ATTRIBUTE_MISSING
The error for a missing required attribute. -
REQUIRED_INDIVIDUALLY_SOLD
The error for when an item cannot be sold individually. -
NO_MATCHING_ALLOWED_VALUE
The error for when no matching allowed value is found. -
NO_VARIANT_FOUND
The error for when no matching variant is found. -
REQUIRED_ATTRIBUTES_MISSING_ON_ITEM
The error for when one or more required attributes are missing for an item. -
DEPENDENT_ITEMS_QUANTITY_BELOW_MIN
The error for when there aren't enough dependent cart items such as in the case ofIncludedProducts
andItemChoice ProductOptions
-
DEPENDENT_ITEMS_QUANTITY_ABOVE_MAX
The error for when there are too many dependent cart items such as in the case ofIncludedProducts
andItemChoice ProductOptions
-
MISMATCHED_DEPENDENT_ITEMS
The error for when one or more mismatched dependent items are found for an item. -
MISCONFIGURED_DEPENDENT_ITEMS
The error for when one or more misconfigured dependent items are found for an item. -
MISCONFIGURED_SELECTOR_ITEM
The error for when the item type is "selector" which cannot be added to the cart. -
MINIMUM_THRESHOLD_NOT_MET
The error for when the minimum quantity of a certain item is not met. -
MAXIMUM_THRESHOLD_EXCEEDED
The error for when the maximum quantity of a certain item is exceeded. -
FREE_GIFT_QUANTITY_CHANGE_NOT_ALLOWED
The error for when the quantity of a free giftCartItem
is being changed. -
CANNOT_HAVE_DEPENDENT_ITEMS
The error for when aCartItem
has dependent items but it shouldn't.For example, a
DefaultCartItemTypes.CUSTOM_QUOTE_ITEM
should not have dependent items. -
CANNOT_HAVE_ATTRIBUTE_CHOICES
The error for when aCartItem
has attribute choices but it shouldn't.For example, a
DefaultCartItemTypes.CUSTOM_QUOTE_ITEM
should not have attribute choices. -
INVALID_CART_ITEM_TYPE
The error for when the item type is invalid for the current cart. -
INVENTORY_UNAVAILABLE
Not really a "configuration" issue, but a validation none-the-less. This indicates that inventory is unavailable. -
PRICE_UNAVAILABLE
Validation issue where no price is available for the item being added. -
INVALID_PRICED_FULFILLMENT_OPTION
The fulfillment option for an item becomes invalid due to an address change, so the fulfillment option gets reset to a default value from the options available to the address.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
messagePath
-