Package com.avoka.fc.core.service
Class SubmissionDataBean
java.lang.Object
com.avoka.fc.core.service.SubmissionDataBean
- All Implemented Interfaces:
Serializable
Provides a holder for extracted form submission data from LiveCycle ES.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionSubmissionDataBean(SubmissionDataBean dataBean, String formXml) Provides a formXml and submission data bean copy constructor.SubmissionDataBean(Document document, byte[] submittedData, String contentType) Create the submission data bean by providing the document.SubmissionDataBean(Document document, byte[] submittedData, String contentType, boolean encrypted) Create the submission data bean by providing the document.SubmissionDataBean(Document document, byte[] submittedData, String contentType, String processState) Create the submission data bean by providing the document and process state.SubmissionDataBean(Document document, byte[] submittedData, String contentType, String processState, String validationErrors) Create the submission data bean by providing the document, process state and validation error.SubmissionDataBean(Document document, byte[] submittedData, String contentType, String processState, List<EmbeddedAttachment> embeddedAttachments, String validationErrors) Create the submission data bean by providing the document, process state, embedded attachment and validation errors. -
Method Summary
Modifier and TypeMethodDescriptionReturn the content type of the data that was submittedReturn the document for the submission data bean.Return a list of embedded attachment.Return the field worker submission date.Return the offline submission key.Return the offline user account.byte[]Return the data originally submitted by the userReturn the task key.Return validation errors.booleanReturn whether it is field worker submission.booleanbooleanReturn the isInFormAttachmentsFlag.booleanReturn true if it is an offline submission.booleanReturn true if a PDF form submission.voidsetEmbeddedAttachments(List<EmbeddedAttachment> embeddedAttachments) Set embedded attachments.voidsetFieldWorkerSubmission(boolean isFieldWorkerSubmission) Set whether it is field worker submission.voidsetFieldWorkerSubmissionDate(Date fieldWorkerSubmissionDate) Set the field worker submission date.voidsetInFormAttachmentsFlag(boolean inFormAttachmentsFlag) Set the inFormAttachmentsFlag.voidsetOfflineSubmission(boolean offlineSubmission) Set whether it is an offline submissionvoidsetOfflineSubmitKey(String offlineSubmitKey) Set the offline submission key.voidsetOfflineUser(UserAccount offlineUser) Set the offline user account.voidsetTaskKey(String taskKey) Set the task key.
-
Constructor Details
-
SubmissionDataBean
public SubmissionDataBean(Document document, byte[] submittedData, String contentType, String processState, List<EmbeddedAttachment> embeddedAttachments, String validationErrors) Create the submission data bean by providing the document, process state, embedded attachment and validation errors.- Parameters:
document- a documentsubmittedData- the originally submitted datacontentType- the content typeprocessState- process state (this is no longer used and present only for compatibility reasons)embeddedAttachments- embedded attachmentvalidationErrors- validation errors
-
SubmissionDataBean
public SubmissionDataBean(Document document, byte[] submittedData, String contentType, String processState) Create the submission data bean by providing the document and process state.- Parameters:
document- a documentsubmittedData- the originally submitted datacontentType- the content typeprocessState- process state (this is no longer used and present only for compatibility reasons)
-
SubmissionDataBean
public SubmissionDataBean(Document document, byte[] submittedData, String contentType, String processState, String validationErrors) Create the submission data bean by providing the document, process state and validation error.- Parameters:
document- a documentsubmittedData- the originally submitted datacontentType- the content typeprocessState- process state (this is no longer used and present only for compatibility reasons)validationErrors- validation errors
-
SubmissionDataBean
Create the submission data bean by providing the document.- Parameters:
document- a documentsubmittedData- the originally submitted datacontentType- the content type
-
SubmissionDataBean
public SubmissionDataBean(Document document, byte[] submittedData, String contentType, boolean encrypted) Create the submission data bean by providing the document.- Parameters:
document- a documentsubmittedData- the originally submitted datacontentType- the content typeencrypted- the form XML data was client encrypted- Since:
- 5.0
-
SubmissionDataBean
Provides a formXml and submission data bean copy constructor.- Parameters:
dataBean- the original submission data bean (required)formXml- the modified form XML data (required)- Since:
- 5.0
-
-
Method Details
-
getContentType
Return the content type of the data that was submitted- Returns:
- the content type
-
getDocument
Return the document for the submission data bean.- Returns:
- the document
-
getSubmittedData
public byte[] getSubmittedData()Return the data originally submitted by the user- Returns:
- the submitted data
-
getEmbeddedAttachments
Return a list of embedded attachment.- Returns:
- a list of embedded attachment
-
getValidationErrors
Return validation errors.- Returns:
- validation errors
-
setEmbeddedAttachments
Set embedded attachments.- Parameters:
embeddedAttachments- embedded attachments
-
isFieldWorkerSubmission
public boolean isFieldWorkerSubmission()Return whether it is field worker submission.- Returns:
- whether it is field worker submission
-
setFieldWorkerSubmission
public void setFieldWorkerSubmission(boolean isFieldWorkerSubmission) Set whether it is field worker submission.- Parameters:
isFieldWorkerSubmission- whether it is field worker submission
-
getFieldWorkerSubmissionDate
Return the field worker submission date.- Returns:
- the field worker submission date
-
setFieldWorkerSubmissionDate
Set the field worker submission date.- Parameters:
fieldWorkerSubmissionDate- the field worker submission date
-
isOfflineSubmission
public boolean isOfflineSubmission()Return true if it is an offline submission.- Returns:
- true if it is an offline submission
-
setOfflineSubmission
public void setOfflineSubmission(boolean offlineSubmission) Set whether it is an offline submission- Parameters:
offlineSubmission- whether it is an offline submission
-
getTaskKey
Return the task key.- Returns:
- the task key.
-
setTaskKey
Set the task key.- Parameters:
taskKey- the task key.
-
getOfflineSubmitKey
Return the offline submission key.- Returns:
- the offline submission key.
-
setOfflineSubmitKey
Set the offline submission key.- Parameters:
offlineSubmitKey- the offline submission key
-
getOfflineUser
Return the offline user account.- Returns:
- the offline user account
-
setOfflineUser
Set the offline user account.- Parameters:
offlineUser- the offline user account
-
isPdfSubmit
public boolean isPdfSubmit()Return true if a PDF form submission.- Returns:
- true if a PDF form submission
- Since:
- 4.0.0
-
isInFormAttachmentsFlag
public boolean isInFormAttachmentsFlag()Return the isInFormAttachmentsFlag.- Returns:
- the isInFormAttachmentsFlag
-
setInFormAttachmentsFlag
public void setInFormAttachmentsFlag(boolean inFormAttachmentsFlag) Set the inFormAttachmentsFlag.- Parameters:
inFormAttachmentsFlag- the inFormAttachmentsFlag
-
isFormDataEncryptedFlag
public boolean isFormDataEncryptedFlag()- Returns:
- true if the form data was encrypted
- Since:
- 5.0
-