Class SubmissionDataService


public class SubmissionDataService extends CayenneService
Provides a service to modify submission data.

This class can be used by Groovy Service to write submission data. Note Groovy Services are not permitted to use ISubmissionDataStorageService directly.

Also note the Groovy Client Data Isolation policy is enforce by the class. If the execution context does not have client data access rights then these methods will throw a SecurityException.

Since:
4.0.7
See Also:
  • Constructor Details

    • SubmissionDataService

      public SubmissionDataService()
  • Method Details

    • setSubmissionReceiptNumber

      public void setSubmissionReceiptNumber(Submission submission, String receiptNumber)
      Set the submission receipt number on the submission record and in the submission XML data.
      Parameters:
      submission - the form submission (required)
      receiptNumber - the new receipt number (required)
    • setSubmissionXmlData

      public void setSubmissionXmlData(Submission submission, String xmlData, HttpServletRequest request)
      Set the submission XML data with the given value.
      Parameters:
      submission - the submission to update (required)
      xmlData - the submission XML data to set (required)
      request - the request (required)