Interface AttributeChoiceConfigurationService

All Known Implementing Classes:
DefaultAttributeChoiceConfigurationService

public interface AttributeChoiceConfigurationService
Author:
Chad Harchar (charchar)
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    validateAttributeChoice(com.broadleafcommerce.cart.client.domain.Cart cart, com.broadleafcommerce.cart.client.domain.CartItem cartItem, String validationFlow, ProductOption option)
    Perform validation against the provided CartItem for the given attribute choice ProductOption.
  • Method Details

    • validateAttributeChoice

      void validateAttributeChoice(@Nullable com.broadleafcommerce.cart.client.domain.Cart cart, com.broadleafcommerce.cart.client.domain.CartItem cartItem, String validationFlow, ProductOption option)
      Perform validation against the provided CartItem for the given attribute choice ProductOption.
      Parameters:
      cart - The Cart of the CartItem
      cartItem - The CartItem to perform attribute choice validation against.
      validationFlow - The context used to identify validation requirements of the CartItem at that point in its lifecycle.
      option - The ProductOption (and it's ProductOption.getAttributeChoice() we are using to validate the cart against.