Package com.avoka.fc.core.service
Interface ISubmissionDataValidator
- All Known Implementing Classes:
FluentSubmissionDataValidator
,GroovySubmissionDataValidator
public interface ISubmissionDataValidator
Provides a submission data validation service.
- Since:
- 4.2.0
-
Method Summary
Modifier and TypeMethodDescriptionvalidateSubmission
(jakarta.servlet.http.HttpServletRequest request, Submission submission, String submissionXML) Validate the submission's XML data, returning empty list if no errors or a list of errors message if data validation failures occur.
-
Method Details
-
validateSubmission
List<String> validateSubmission(jakarta.servlet.http.HttpServletRequest request, Submission submission, String submissionXML) Validate the submission's XML data, returning empty list if no errors or a list of errors message if data validation failures occur.- Parameters:
request
- the servlet requestsubmission
- the reference submissionsubmissionXML
- the submission form XML data- Returns:
- a list of data validation errors or an empty or null list if no errors occur
-