Uses of Class
com.broadleafcommerce.cartoperation.domain.AttributeChoice
-
Packages that use AttributeChoice Package Description com.broadleafcommerce.cartoperation.domain com.broadleafcommerce.cartoperation.service.configuration -
-
Uses of AttributeChoice in com.broadleafcommerce.cartoperation.domain
Methods in com.broadleafcommerce.cartoperation.domain that return AttributeChoice Modifier and Type Method Description AttributeChoice
ProductOption. 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
.Methods in com.broadleafcommerce.cartoperation.domain with parameters of type AttributeChoice Modifier and Type Method Description void
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
Methods in com.broadleafcommerce.cartoperation.service.configuration with parameters of type AttributeChoice Modifier and Type Method Description protected Optional<String>
DefaultAttributeChoiceConfigurationService. 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.
-