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

    Fields
    Modifier and Type
    Field
    Description
    static final String
    The "Run On Save Resume" service parameter name.
  • Method Summary

    Modifier and Type
    Method
    Description
    Return the authentication service for determining the authenticated user.
    getFormPrefillData(Form form, Document schemaSeed, jakarta.servlet.http.HttpServletRequest request)
    Return the form pre-population data for the given form, the schema seed and request.
    void
    Optionally set the task submission record before the getFormPrefillData method is called.
  • Field Details

    • RUN_ON_SAVE_RESUME

      static final String RUN_ON_SAVE_RESUME
      The "Run On Save Resume" service parameter name.
      See Also:
  • Method Details

    • getFormPrefillData

      Object getFormPrefillData(Form form, Document schemaSeed, jakarta.servlet.http.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 for
      schemaSeed - the form schema seed XML
      request - the form request
      Returns:
      the XML prefill data either a Document, String or null
      Throws:
      RedirectException - the redirect exception
    • setSubmission

      void setSubmission(Submission submission)
      Optionally set the task submission record before the getFormPrefillData 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