Class ExportRequestValidator
- java.lang.Object
-
- com.broadleafcommerce.common.dataexport.service.ExportRequestValidator
-
public class ExportRequestValidator extends Object
ValidatesExportRequest.- Author:
- Samarth Dhruva (samarthd)
- See Also:
ExportManager.initiateExport(ExportRequest, String, String, ContextInfo)
-
-
Constructor Summary
Constructors Constructor Description ExportRequestValidator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidvalidate(ExportRequest request, org.springframework.validation.Errors errors)Validates the fields of therequestand registers errorMessage inerrorMessage.protected voidvalidateFileType(org.springframework.validation.Errors errors)
-
-
-
Method Detail
-
validate
public void validate(ExportRequest request, org.springframework.validation.Errors errors)
Validates the fields of therequestand 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)
-
-