Interface TypeFulfillmentGroupSubmitValidator
-
- All Superinterfaces:
FulfillmentValidator
,org.springframework.validation.SmartValidator
,org.springframework.validation.Validator
- All Known Implementing Classes:
AbstractTypeFulfillmentGroupSubmitValidator
,PickupTypeFulfillmentGroupSubmitValidator
,ShipTypeFulfillmentGroupSubmitValidator
,VirtualTypeFulfillmentGroupSubmitValidator
public interface TypeFulfillmentGroupSubmitValidator extends FulfillmentValidator
Validates a fulfillment group information specific to a certainFulfillmentGroup.getType()
. Validation that is common to all fulfillment group types belongs inFulfillmentGroupSubmitValidator
.- Author:
- Jacob Mitash
-
-
Field Summary
Fields Modifier and Type Field Description static String
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.static String
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.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
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
-
-
-
-
Field Detail
-
HINT_SKIP_ADDRESS_VALIDATION
static final String 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:
- Constant Field Values
-
HINT_FORCE_ADDRESS_VALIDATION
static final String 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:
- Constant Field Values
-
-
Method Detail
-
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
-
-