Class ExportRequestValidator

java.lang.Object
com.broadleafcommerce.common.dataexport.service.ExportRequestValidator

public class ExportRequestValidator extends Object
Validates ExportRequest.
Author:
Samarth Dhruva (samarthd)
See Also:
  • Constructor Details

    • ExportRequestValidator

      public ExportRequestValidator()
  • Method Details

    • validate

      public void validate(ExportRequest request, org.springframework.validation.Errors errors)
      Validates the fields of the request and registers errorMessage in errorMessage.
      Parameters:
      request - the export request to validate
      errors - holder for validation context information. When adding field validation errorMessage, the field names should be in the context of the request.
    • validateFileType

      protected void validateFileType(org.springframework.validation.Errors errors)