Interface FormSubmissionManager
- All Known Implementing Classes:
FormSubmissionManagerImpl
public interface FormSubmissionManager
-
Method Summary
Modifier and TypeMethodDescriptionvoidhandle(PageModel pageModel, FormSubmissionMsg msg, Consumer<FormSubmissionResponse> cb) Expected to handle any form submissions submitted from a running session.voidhandle(String projectName, FormSubmissionMsg msg, com.google.common.collect.ImmutableCollection<SecurityLevelConfig> securityLevelConfigs, Consumer<FormSubmissionResponse> cb, String username) Expected to handle any form submissions submitted without a running session.
-
Method Details
-
handle
void handle(@Nonnull PageModel pageModel, FormSubmissionMsg msg, Consumer<FormSubmissionResponse> cb) Expected to handle any form submissions submitted from a running session.- Parameters:
pageModel- -PageModelfrom which this submission was submitted.msg- - The form submission as aFormSubmissionMsg.cb- - Consumer callback that accepts aFormSubmissionResponsewhen submission processing has completed.
-
handle
void handle(String projectName, FormSubmissionMsg msg, com.google.common.collect.ImmutableCollection<SecurityLevelConfig> securityLevelConfigs, Consumer<FormSubmissionResponse> cb, String username) Expected to handle any form submissions submitted without a running session.- Parameters:
projectName- - The name of the project.msg- - The form submission as aFormSubmissionMsg.securityLevelConfigs- - An immutable collection ofSecurityLevelConfigs.cb- - Consumer callback that accepts aFormSubmissionResponsewhen submission processing has completed.username- - The username of the actor, for auditing purposes. Use "Unauthenticated" if username is unavailable.
-