Interface FulfillmentAddressSubmitValidator
-
- All Superinterfaces:
FulfillmentValidator
,org.springframework.validation.SmartValidator
,org.springframework.validation.Validator
- All Known Implementing Classes:
DefaultFulfillmentAddressSubmitValidator
public interface FulfillmentAddressSubmitValidator extends FulfillmentValidator
Validates a submitted address of a fulfillment group.- Author:
- Jacob Mitash
- See Also:
FulfillmentGroupSubmitValidator
-
-
Field Summary
Fields Modifier and Type Field Description static String
HINT_CITY_NOT_REQUIRED
Hint to the validator that the city name is not required.static String
HINT_COMPANY_NAME_REQUIRED
Hint to the validator that the company name is required.static String
HINT_COUNTRY_NOT_REQUIRED
Hint to the validator that the country is not required.static String
HINT_COUNTY_REQUIRED
Hint to the validator that the county is required.static String
HINT_EMAIL_REQUIRED
Hint to the validator that the email address is required.static String
HINT_PHONE_PRIMARY_NOT_REQUIRED
Hint to the validator the the primary phone number is not required.static String
HINT_POSTAL_CODE_NOT_REQUIRED
Hint to the validator that the postal code is not required.static String
HINT_STATE_PROVINCE_REGION_NOT_REQUIRED
Hint to the validator that the state province region is not required.static String
HINT_VALIDATE_FIRST_AND_LAST
Hint to the validator to validate the first and last name individually as opposed to the full name.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
supports(com.broadleafcommerce.order.common.domain.Address address)
Tells if this validator supports the given fulfillment group address.-
Methods inherited from interface com.broadleafcommerce.cartoperation.service.fulfillment.validation.FulfillmentValidator
getSupportedClass, supports, validate, validate, validate, validate, validate
-
-
-
-
Field Detail
-
HINT_VALIDATE_FIRST_AND_LAST
static final String HINT_VALIDATE_FIRST_AND_LAST
Hint to the validator to validate the first and last name individually as opposed to the full name.- See Also:
- Constant Field Values
-
HINT_EMAIL_REQUIRED
static final String HINT_EMAIL_REQUIRED
Hint to the validator that the email address is required.- See Also:
- Constant Field Values
-
HINT_COMPANY_NAME_REQUIRED
static final String HINT_COMPANY_NAME_REQUIRED
Hint to the validator that the company name is required.- See Also:
- Constant Field Values
-
HINT_CITY_NOT_REQUIRED
static final String HINT_CITY_NOT_REQUIRED
Hint to the validator that the city name is not required.- See Also:
- Constant Field Values
-
HINT_COUNTY_REQUIRED
static final String HINT_COUNTY_REQUIRED
Hint to the validator that the county is required.- See Also:
- Constant Field Values
-
HINT_COUNTRY_NOT_REQUIRED
static final String HINT_COUNTRY_NOT_REQUIRED
Hint to the validator that the country is not required.- See Also:
- Constant Field Values
-
HINT_STATE_PROVINCE_REGION_NOT_REQUIRED
static final String HINT_STATE_PROVINCE_REGION_NOT_REQUIRED
Hint to the validator that the state province region is not required.- See Also:
- Constant Field Values
-
HINT_POSTAL_CODE_NOT_REQUIRED
static final String HINT_POSTAL_CODE_NOT_REQUIRED
Hint to the validator that the postal code is not required.- See Also:
- Constant Field Values
-
HINT_PHONE_PRIMARY_NOT_REQUIRED
static final String HINT_PHONE_PRIMARY_NOT_REQUIRED
Hint to the validator the the primary phone number is not required.- See Also:
- Constant Field Values
-
-
Method Detail
-
supports
boolean supports(com.broadleafcommerce.order.common.domain.Address address)
Tells if this validator supports the given fulfillment group address.- Parameters:
address
- the fulfillment group address to test support of- Returns:
- true if this supports validation of the given address, false otherwise
-
-