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
-
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 useISubmissionDataStorageService
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:
Submission
-
-
Constructor Summary
Constructors Constructor Description SubmissionDataService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
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
-
-
-
-
Method Detail
-
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)
-
-