Interface TypeFulfillmentGroupSubmitValidator
- All Superinterfaces:
FulfillmentValidator
,org.springframework.validation.SmartValidator
,org.springframework.validation.Validator
- All Known Implementing Classes:
AbstractTypeFulfillmentGroupSubmitValidator
,PickupTypeFulfillmentGroupSubmitValidator
,ShipTypeFulfillmentGroupSubmitValidator
,VirtualTypeFulfillmentGroupSubmitValidator
Validates a fulfillment group information specific to a certain
FulfillmentGroup.getType()
. Validation that is common to all fulfillment group types
belongs in
FulfillmentGroupSubmitValidator
.- Author:
- Jacob Mitash
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
Hint to the validator to force address validation regardless of whether the type this validator supports typically does fulfillment address validation.static final String
Hint to the validator to skip the address validation regardless of whether the type this validator supports typically does fulfillment address validation. -
Method Summary
Modifier and TypeMethodDescriptionboolean
supports
(com.broadleafcommerce.cart.client.domain.FulfillmentGroup group) Tells if this validator supports the given fulfillment group.Methods inherited from interface com.broadleafcommerce.cartoperation.service.fulfillment.validation.FulfillmentValidator
getSupportedClass, supports, validate, validate, validate, validate, validate
Methods inherited from interface org.springframework.validation.SmartValidator
validateValue
-
Field Details
-
HINT_SKIP_ADDRESS_VALIDATION
Hint to the validator to skip the address validation regardless of whether the type this validator supports typically does fulfillment address validation.- See Also:
-
HINT_FORCE_ADDRESS_VALIDATION
Hint to the validator to force address validation regardless of whether the type this validator supports typically does fulfillment address validation.- See Also:
-
-
Method Details
-
supports
boolean supports(com.broadleafcommerce.cart.client.domain.FulfillmentGroup group) Tells 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
-