Interface Action
public interface Action
An interface to define a particular Action.
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidrun(FormSubmission formSubmission, Submission submission) Runs an action on form submission and submission data to potentially manipulate the data.default voidrun(FormSubmission formSubmission, Submission submission, String id) Runs an action on form submission and submission data to potentially manipulate the data.default voidrun(Submission submission) Runs an action on a submission to potentially manipulate the data.default voidrun(Submission submission, String id) Runs an action on a submission to potentially manipulate the data.runValidation(FormSubmission formSubmission) Deprecated.use `runValidation(final FormSubmission formSubmission, Submission submission)` instead.runValidation(FormSubmission formSubmission, Submission submission) Runs validation code with the expectation that error messages may be returned.
-
Method Details
-
run
Runs an action on a submission to potentially manipulate the data.- Parameters:
submission- submission object the action is associated with, not null
-
run
Runs an action on a submission to potentially manipulate the data.- Parameters:
submission- submission object the action is associated with, not nullid- id for the iteration
-
run
Runs an action on form submission and submission data to potentially manipulate the data.- Parameters:
formSubmission- form submission object the action is associated with, not nullsubmission- submission object the action is associated with, not null
-
run
Runs an action on form submission and submission data to potentially manipulate the data.- Parameters:
formSubmission- form submission object the action is associated with, not nullsubmission- submission object the action is associated with, not nullid- id for the iteration
-
runValidation
Deprecated.use `runValidation(final FormSubmission formSubmission, Submission submission)` instead.Runs validation code with the expectation that error messages may be returned.- Parameters:
formSubmission- form submission object the action is associated with, not null- Returns:
- a hashmap of a String to List of Strings that represents errors and their corresponding error messages.
-
runValidation
default Map<String,List<String>> runValidation(FormSubmission formSubmission, Submission submission) Runs validation code with the expectation that error messages may be returned.- Parameters:
formSubmission- form submission object the action is associated with, not nullsubmission- submission object the action is associated with, not null- Returns:
- a hashmap of a String to List of Strings that represents errors and their corresponding error messages.
-