Package com.avoka.fc.core.service
Class SubmissionDataService
java.lang.Object
com.avoka.fc.core.service.BaseService
com.avoka.fc.core.service.CayenneService
com.avoka.fc.core.service.SubmissionDataService
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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
setSubmissionReceiptNumber
(Submission submission, String receiptNumber) Set the submission receipt number on the submission record and in the submission XML data.void
setSubmissionXmlData
(Submission submission, String xmlData, HttpServletRequest request) Set the submission XML data with the given value.Methods inherited from class com.avoka.fc.core.service.CayenneService
commitChanges, deleteObject, deleteObjects, findObject, getDataContext, getDataDomain, getObjectForPK, getObjectStore, newObject, performNamedQuery, performNamedQuery, performNamedQuery, performNonSelectingQuery, performNonSelectingQuery, performNonSelectingQuery, performNonSelectingQuery, performQuery, performQuery, refetchEntity, refetchObject, registerNewObject, rollbackChanges, toMap, toMap
Methods inherited from class com.avoka.fc.core.service.BaseService
getLogger
-
Constructor Details
-
SubmissionDataService
public SubmissionDataService()
-
-
Method Details
-
setSubmissionReceiptNumber
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
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)
-