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
-
public class SubmissionDataDao extends AbstractDao
Provides a Submission Data DAO to provide safe read only access to submission data. This class uses the underlyingISubmissionDataStorageService
to access the submission data. This class can be used by Groovy Service to access 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 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
Constructors Constructor Description SubmissionDataDao()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]
getAttachment(FileUpload fileUpload)
Gets the attachment file data.Map<String,String>
getFormDataMap(Submission submission)
Return the Form Data Map for the given submission based on the submission extract data.byte[]
getSignatureReceipt(Submission submission)
Gets the signature receipt 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.Document
getSubmissionXmlDocument(Submission submission)
Gets the submission XML data as Document object.String
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
-
-
-
-
Method Detail
-
getFormDataMap
public Map<String,String> getFormDataMap(Submission submission)
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
public byte[] getSubmissionReceipt(Submission submission)
Gets the submission receipt data.- Parameters:
submission
- the submission (required)- Returns:
- the submission receipt
-
getSignatureReceipt
public byte[] getSignatureReceipt(Submission submission)
Gets the signature receipt data.- Parameters:
submission
- the submission (required)- Returns:
- the signature receipt
-
getSubmissionXml
public byte[] getSubmissionXml(Submission submission)
Gets the submission XML data.- Parameters:
submission
- the submission (required)- Returns:
- the submission XML
-
getSubmissionXmlString
public String getSubmissionXmlString(Submission submission)
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
public Document getSubmissionXmlDocument(Submission submission)
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
public byte[] getSubmissionHistoryXml(SubmissionHistory history)
Gets the submission history XML data.- Parameters:
history
- the history (required)- Returns:
- the submission history XML
-
getAttachment
public byte[] getAttachment(FileUpload fileUpload)
Gets the attachment file data.- Parameters:
fileUpload
- the file upload- Returns:
- the attachment
-
-