Package com.avoka.fc.core.service
Interface FormPrefillService
- All Known Implementing Classes:
FluentFormPrefillService
,GroovyFormPrefillService
public interface FormPrefillService
Provides a service to get the form pre-population data for the given form and request.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The "Run On Save Resume" service parameter name. -
Method Summary
Modifier and TypeMethodDescriptionReturn the authentication service for determining the authenticated user.getFormPrefillData
(Form form, Document schemaSeed, HttpServletRequest request) Return the form pre-population data for the given form, the schema seed and request.void
setSubmission
(Submission submission) Optionally set the task submission record before thegetFormPrefillData
method is called.
-
Field Details
-
RUN_ON_SAVE_RESUME
The "Run On Save Resume" service parameter name.- See Also:
-
-
Method Details
-
getFormPrefillData
Object getFormPrefillData(Form form, Document schemaSeed, HttpServletRequest request) throws RedirectException Return the form pre-population data for the given form, the schema seed and request.- Parameters:
form
- the get the pre-population data forschemaSeed
- the form schema seed XMLrequest
- the form request- Returns:
- the XML prefill data either a Document, String or null
- Throws:
RedirectException
- the redirect exception
-
setSubmission
Optionally set the task submission record before thegetFormPrefillData
method is called.- Parameters:
submission
- the task submission record- Since:
- 4.0.0
-
getAuthenticationService
IAuthenticationService getAuthenticationService()Return the authentication service for determining the authenticated user.- Returns:
- the authentication service for determining the authenticated user
-