Class VirtualTypeFulfillmentGroupSubmitValidator

java.lang.Object
com.broadleafcommerce.cartoperation.service.fulfillment.validation.type.AbstractTypeFulfillmentGroupSubmitValidator
com.broadleafcommerce.cartoperation.service.fulfillment.validation.type.VirtualTypeFulfillmentGroupSubmitValidator
All Implemented Interfaces:
FulfillmentValidator, TypeFulfillmentGroupSubmitValidator, org.springframework.validation.SmartValidator, org.springframework.validation.Validator

public class VirtualTypeFulfillmentGroupSubmitValidator extends AbstractTypeFulfillmentGroupSubmitValidator
Validates fulfillment information specific to FulfillmentType.VIRTUAL fulfillment groups.
Author:
Jacob Mitash
  • Constructor Details

  • Method Details

    • getSupportedClass

      public Class<?> getSupportedClass()
      Description copied from interface: FulfillmentValidator
      Gets the class that this validator supports.
      Returns:
      the class that this validator support
    • supports

      public boolean supports(@NonNull @NonNull com.broadleafcommerce.cart.client.domain.FulfillmentGroup group)
      Description copied from interface: TypeFulfillmentGroupSubmitValidator
      Tells if this validator supports the given fulfillment group. This is typically determined by the FulfillmentGroup.getType().
      Parameters:
      group - the fulfillment group to test support of
      Returns:
      true if this supports validation of the given fulfillment group, false otherwise
    • shouldValidateAddress

      protected boolean shouldValidateAddress(@NonNull @NonNull Set<Object> hints)
      Description copied from class: AbstractTypeFulfillmentGroupSubmitValidator
      Tells whether this validator should validate the address or not.
      Specified by:
      shouldValidateAddress in class AbstractTypeFulfillmentGroupSubmitValidator
      Parameters:
      hints - hints to use when determining whether or not to validate the address
      Returns:
      true to validate the address, false otherwise