Uses of Class
com.broadleafcommerce.cartoperation.domain.AttributeChoice
Package
Description
-
Uses of AttributeChoice in com.broadleafcommerce.cartoperation.domain
Modifier and TypeMethodDescriptionProductOption.getAttributeChoice()
Configuration when theProductOption.type
of this option is one of:ProductOptionType.VARIANT_DISTINGUISHING
- drives customer further specifying their choices into a specificVariant
that contains a unique SKU code, pricing concerns, etc.ProductOptionType.CART_ITEM_ATTRIBUTE
- Customer input will flow directly in the item attributes within their cartProductOptionType.CART_ATTRIBUTE
.Modifier and TypeMethodDescriptionvoid
ProductOption.setAttributeChoice
(AttributeChoice attributeChoice) Configuration when theProductOption.type
of this option is one of:ProductOptionType.VARIANT_DISTINGUISHING
- drives customer further specifying their choices into a specificVariant
that contains a unique SKU code, pricing concerns, etc.ProductOptionType.CART_ITEM_ATTRIBUTE
- Customer input will flow directly in the item attributes within their cartProductOptionType.CART_ATTRIBUTE
. -
Uses of AttributeChoice in com.broadleafcommerce.cartoperation.service.configuration
Modifier and TypeMethodDescriptionDefaultAttributeChoiceConfigurationService.determineMatchedValue
(@NonNull AttributeChoice attributeChoice, String chosenValue) If there are anygetAllowedValues()
, make sure that the chosen value matches.protected void
DefaultAttributeChoiceConfigurationService.performRegexValidation
(@NonNull com.broadleafcommerce.cart.client.domain.CartItem cartItem, @NonNull AttributeChoice attributeChoice, @NonNull String chosenValue) Perform regex validation fromgetValidationRule()
against the cart.protected void
DefaultAttributeChoiceConfigurationService.performValidationStrategy
(@NonNull com.broadleafcommerce.cart.client.domain.CartItem cartItem, @NonNull AttributeChoice attributeChoice, @NonNull String chosenValue) Perform thegetValidationStrategy()
on the cartItem and the chosen value.