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 AttributeChoiceProductOption. getAttributeChoice()Configuration when theProductOption.typeof this option is one of:ProductOptionType.VARIANT_DISTINGUISHING- drives customer further specifying their choices into a specificVariantthat 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 voidProductOption. setAttributeChoice(AttributeChoice attributeChoice)Configuration when theProductOption.typeof this option is one of:ProductOptionType.VARIANT_DISTINGUISHING- drives customer further specifying their choices into a specificVariantthat 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 voidDefaultAttributeChoiceConfigurationService. performRegexValidation(@NonNull com.broadleafcommerce.cart.client.domain.CartItem cartItem, @NonNull AttributeChoice attributeChoice, @NonNull String chosenValue)Perform regex validation fromgetValidationRule()against the cart.protected voidDefaultAttributeChoiceConfigurationService. performValidationStrategy(@NonNull com.broadleafcommerce.cart.client.domain.CartItem cartItem, @NonNull AttributeChoice attributeChoice, @NonNull String chosenValue)Perform thegetValidationStrategy()on the cartItem and the chosen value.
-