Class PickupTypeFulfillmentGroupSubmitValidator
java.lang.Object
com.broadleafcommerce.cartoperation.service.fulfillment.validation.type.AbstractTypeFulfillmentGroupSubmitValidator
com.broadleafcommerce.cartoperation.service.fulfillment.validation.type.PickupTypeFulfillmentGroupSubmitValidator
- All Implemented Interfaces:
FulfillmentValidator,TypeFulfillmentGroupSubmitValidator,org.springframework.validation.SmartValidator,org.springframework.validation.Validator
public class PickupTypeFulfillmentGroupSubmitValidator
extends AbstractTypeFulfillmentGroupSubmitValidator
Validates fulfillment information specific to
FulfillmentType.PICKUP fulfillment groups.- Author:
- Jacob Mitash
-
Field Summary
Fields inherited from interface com.broadleafcommerce.cartoperation.service.fulfillment.validation.type.TypeFulfillmentGroupSubmitValidator
HINT_FORCE_ADDRESS_VALIDATION, HINT_SKIP_ADDRESS_VALIDATION -
Constructor Summary
ConstructorsConstructorDescriptionPickupTypeFulfillmentGroupSubmitValidator(Set<FulfillmentAddressSubmitValidator> addressValidators) -
Method Summary
Modifier and TypeMethodDescriptionClass<?>Gets the class that this validator supports.protected booleanshouldValidateAddress(@NonNull Set<Object> hints) Tells whether this validator should validate the address or not.booleansupports(@NonNull com.broadleafcommerce.cart.client.domain.FulfillmentGroup group) Tells if this validator supports the given fulfillment group.Methods inherited from class com.broadleafcommerce.cartoperation.service.fulfillment.validation.type.AbstractTypeFulfillmentGroupSubmitValidator
getAddressValidators, validate, validateAddressMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.broadleafcommerce.cartoperation.service.fulfillment.validation.FulfillmentValidator
supports, validate, validate, validate, validate, validateWithDataHolderMethods inherited from interface org.springframework.validation.SmartValidator
validateValue
-
Constructor Details
-
PickupTypeFulfillmentGroupSubmitValidator
public PickupTypeFulfillmentGroupSubmitValidator(Set<FulfillmentAddressSubmitValidator> addressValidators)
-
-
Method Details
-
getSupportedClass
Description copied from interface:FulfillmentValidatorGets 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:TypeFulfillmentGroupSubmitValidatorTells if this validator supports the given fulfillment group. This is typically determined by theFulfillmentGroup.getType().- Parameters:
group- the fulfillment group to test support of- Returns:
- true if this supports validation of the given fulfillment group, false otherwise
-
shouldValidateAddress
Description copied from class:AbstractTypeFulfillmentGroupSubmitValidatorTells whether this validator should validate the address or not.- Specified by:
shouldValidateAddressin classAbstractTypeFulfillmentGroupSubmitValidator- Parameters:
hints- hints to use when determining whether or not to validate the address- Returns:
- true to validate the address, false otherwise
-