Interface FormSubmissionManager
- All Known Implementing Classes:
FormSubmissionManagerImpl
public interface FormSubmissionManager
-
Method Summary
Modifier and TypeMethodDescriptionvoid
handle
(PageModel pageModel, FormSubmissionMsg msg, Consumer<FormSubmissionResponse> cb) Expected to handle any form submissions submitted from a running session.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.
-
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
- -PageModel
from which this submission was submitted.msg
- - The form submission as aFormSubmissionMsg
.cb
- - Consumer callback that accepts aFormSubmissionResponse
when 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 ofSecurityLevelConfig
s.cb
- - Consumer callback that accepts aFormSubmissionResponse
when submission processing has completed.username
- - The username of the actor, for auditing purposes. Use "Unauthenticated" if username is unavailable.
-