Class ExportRequestValidator
java.lang.Object
com.broadleafcommerce.common.dataexport.service.ExportRequestValidator
Validates
ExportRequest
.- Author:
- Samarth Dhruva (samarthd)
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
validate
(ExportRequest request, org.springframework.validation.Errors errors) Validates the fields of therequest
and registers errorMessage inerrorMessage
.protected void
validateFileType
(org.springframework.validation.Errors errors)
-
Constructor Details
-
ExportRequestValidator
public ExportRequestValidator()
-
-
Method Details
-
validate
Validates the fields of therequest
and registers errorMessage inerrorMessage
.- Parameters:
request
- the export request to validateerrors
- holder for validation context information. When adding field validation errorMessage, the field names should be in the context of therequest
.
-
validateFileType
protected void validateFileType(org.springframework.validation.Errors errors)
-