Package com.avoka.fc.core.dao
Class SubmissionDataDao
java.lang.Object
com.avoka.core.dao.BaseDao
com.avoka.fc.core.dao.AbstractDao
com.avoka.fc.core.dao.SubmissionDataDao
Provides a Submission Data DAO to provide safe read only access to submission data. This class uses
the underlying
ISubmissionDataStorageService
to access the submission data.
This class can be used by Groovy Service to access 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 return null.
import com.avoka.fc.core.dao.SubmissionDataDao def submissionDataDao = new SubmissionDataDao() def submissionXmlString = submissionDataDao.getSubmissionXmlString(submission)
- Since:
- 3.6.0
-
Field Summary
Fields inherited from class com.avoka.core.dao.BaseDao
FETCH_LIMIT, STATEMENT_MAX_NO_PARAMETERS
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbyte[]
getAttachment
(FileUpload fileUpload) Gets the attachment file data.getFormDataMap
(Submission submission) Return the Form Data Map for the given submission based on the submission extract data.byte[]
getSubmissionHistoryXml
(SubmissionHistory history) Gets the submission history XML data.byte[]
getSubmissionReceipt
(Submission submission) Gets the submission receipt data.byte[]
getSubmissionXml
(Submission submission) Gets the submission XML data.getSubmissionXmlDocument
(Submission submission) Gets the submission XML data as Document object.getSubmissionXmlString
(Submission submission) Gets the submission XML data as a UTF-8 encoded text.Methods inherited from class com.avoka.fc.core.dao.AbstractDao
andFilterClientExcludeNull, andFilterClientIncludeNull, andFilterClientOnly, isClientAccessAllowed, performQueryConfigCached
Methods inherited from class com.avoka.core.dao.BaseDao
addOrdering, addOrderingCaseInsensitive, addOrderingCaseSensitive, andQueryBetween, andQueryInExp, andQueryInExp, andQueryLikeIgnoreCaseExp, andQueryMatchDbExp, andQueryMatchExp, andQueryMatchIsNotNull, andQueryMatchIsNull, andQueryNoMatchExp, andQueryNotTrue, deleteObject, deleteObjects, findObject, getDataContext, getFetchLimit, getLogger, getObjectForPK, newObject, orQueryLikeIgnoreCaseExp, orQueryMatchExp, performNamedQuery, performNamedQuery, performNamedQuery, performNamedQuery, performNonSelectingQuery, performNonSelectingQuery, performNonSelectingQuery, performNonSelectingQuery, performQuery, performQuery, performQuery, registerNewObject, setCacheStrategy, setFetchLimit, setLocalCacheStrategy, setLocalCacheStrategy, setSharedCacheStrategy, toMap, toMap
-
Constructor Details
-
SubmissionDataDao
public SubmissionDataDao()
-
-
Method Details
-
getFormDataMap
Return the Form Data Map for the given submission based on the submission extract data. Extract names will be converted into Java property format to enable easier use in scripts."First Name" -> "firstName
- Parameters:
submission
- the submission to return data form data extract from (required)- Returns:
- the submission form data extract map, or null of access is not permitted
- Since:
- 4.0.0
-
getSubmissionReceipt
Gets the submission receipt data.- Parameters:
submission
- the submission (required)- Returns:
- the submission receipt
-
getSubmissionXml
Gets the submission XML data.- Parameters:
submission
- the submission (required)- Returns:
- the submission XML
-
getSubmissionXmlString
Gets the submission XML data as a UTF-8 encoded text.- Parameters:
submission
- the submission (required)- Returns:
- the submission XML as a UTF-8 encoded text.
-
getSubmissionXmlDocument
Gets the submission XML data as Document object.- Parameters:
submission
- the submission (required)- Returns:
- the submission XML as a Document object.
- Since:
- 4.0.0
-
getSubmissionHistoryXml
Gets the submission history XML data.- Parameters:
history
- the history (required)- Returns:
- the submission history XML
-
getAttachment
Gets the attachment file data.- Parameters:
fileUpload
- the file upload- Returns:
- the attachment
-