Package com.avoka.fc.core.util
Class AttachmentSummaryUtils
java.lang.Object
com.avoka.fc.core.util.AttachmentSummaryUtils
Provides methods to create attachment summary XML data.
Example Content
The Attachment Summary XML structure is illustrated below:
<AttachmentSummary>
<Attachment>
<attachmentKey/>
<attachmentName/>
<contentType/>
<documentCode/>
<fileName/>
<fileSize/>
<fileSizeFormatted/>
<fileUploadType/>
<required/>
<submittedManually/>
<userDescription/>
<viewUrl/>
<virusStatus/>
</Attachment>
</AttachmentSummary>
- Since:
- 4.1.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe attachment element name used byinvalid reference
AttachmentSummaryUtils#populateAttachmentSummary(Document, String, Submission)static final StringThe attachment key element used byinvalid reference
AttachmentSummaryUtils#populateAttachmentSummary(Document, String, Submission)static final StringThe attachment name element used byinvalid reference
AttachmentSummaryUtils#populateAttachmentSummary(Document, String, Submission)static final StringThe attachment element name used byinvalid reference
AttachmentSummaryUtils#populateAttachmentSummary(Document, String, Submission)static final StringThe content type element used byinvalid reference
AttachmentSummaryUtils#populateAttachmentSummary(Document, String, Submission)static final StringThe document name element used byinvalid reference
AttachmentSummaryUtils#populateAttachmentSummary(Document, String, Submission)static final StringThe file name element used byinvalid reference
AttachmentSummaryUtils#populateAttachmentSummary(Document, String, Submission)static final StringThe file size element used byinvalid reference
AttachmentSummaryUtils#populateAttachmentSummary(Document, String, Submission)static final StringThe formatted file size element used byinvalid reference
AttachmentSummaryUtils#populateAttachmentSummary(Document, String, Submission)static final StringThe file upload type element used byinvalid reference
AttachmentSummaryUtils#populateAttachmentSummary(Document, String, Submission)static final StringThe required flag element used byinvalid reference
AttachmentSummaryUtils#populateAttachmentSummary(Document, String, Submission)static final StringThe submitted manually flag element used byinvalid reference
AttachmentSummaryUtils#populateAttachmentSummary(Document, String, Submission)static final StringThe user description element used byinvalid reference
AttachmentSummaryUtils#populateAttachmentSummary(Document, String, Submission)static final StringThe view URL element used byinvalid reference
AttachmentSummaryUtils#populateAttachmentSummary(Document, String, Submission)static final StringThe virus status element used byinvalid reference
AttachmentSummaryUtils#populateAttachmentSummary(Document, String, Submission) -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidpopulateAttachmentSummary(Submission submission, Document document, String xPath, Set<String> attachmentNamesToInclude) Populates information about a submission's attachments into an XML document.
-
Field Details
-
ATTACHMENT_SUMMARY_ELEMENT
The attachment element name used byinvalid reference
AttachmentSummaryUtils#populateAttachmentSummary(Document, String, Submission)- See Also:
-
ATTACHMENT_ELEMENT
The attachment element name used byinvalid reference
AttachmentSummaryUtils#populateAttachmentSummary(Document, String, Submission)- See Also:
-
ATTACHMENT_KEY_ELEMENT
The attachment key element used byinvalid reference
AttachmentSummaryUtils#populateAttachmentSummary(Document, String, Submission)- See Also:
-
ATTACHMENT_NAME_ELEMENT
The attachment name element used byinvalid reference
AttachmentSummaryUtils#populateAttachmentSummary(Document, String, Submission)- See Also:
-
CONTENT_TYPE_ELEMENT
The content type element used byinvalid reference
AttachmentSummaryUtils#populateAttachmentSummary(Document, String, Submission)- See Also:
-
DOCUMENT_CODE_ELEMENT
The document name element used byinvalid reference
AttachmentSummaryUtils#populateAttachmentSummary(Document, String, Submission)- See Also:
-
FILE_NAME_ELEMENT
The file name element used byinvalid reference
AttachmentSummaryUtils#populateAttachmentSummary(Document, String, Submission)- See Also:
-
FILE_SIZE_ELEMENT
The file size element used byinvalid reference
AttachmentSummaryUtils#populateAttachmentSummary(Document, String, Submission)- See Also:
-
FILE_SIZE_FORMATTED_ELEMENT
The formatted file size element used byinvalid reference
AttachmentSummaryUtils#populateAttachmentSummary(Document, String, Submission)- See Also:
-
FILE_UPLOAD_TYPE_ELEMENT
The file upload type element used byinvalid reference
AttachmentSummaryUtils#populateAttachmentSummary(Document, String, Submission)- See Also:
-
REQUIRED_ELEMENT
The required flag element used byinvalid reference
AttachmentSummaryUtils#populateAttachmentSummary(Document, String, Submission)- See Also:
-
SUBMITTED_MANUALLY_ELEMENT
The submitted manually flag element used byinvalid reference
AttachmentSummaryUtils#populateAttachmentSummary(Document, String, Submission)- See Also:
-
USER_DESCRIPTION_ELEMENT
The user description element used byinvalid reference
AttachmentSummaryUtils#populateAttachmentSummary(Document, String, Submission)- See Also:
-
VIEW_URL_ELEMENT
The view URL element used byinvalid reference
AttachmentSummaryUtils#populateAttachmentSummary(Document, String, Submission)- See Also:
-
VIRUS_STATUS_ELEMENT
The virus status element used byinvalid reference
AttachmentSummaryUtils#populateAttachmentSummary(Document, String, Submission)- See Also:
-
-
Constructor Details
-
AttachmentSummaryUtils
public AttachmentSummaryUtils()
-
-
Method Details
-
populateAttachmentSummary
public static void populateAttachmentSummary(Submission submission, Document document, String xPath, Set<String> attachmentNamesToInclude) Populates information about a submission's attachments into an XML document.- Parameters:
submission- the submission (required)document- the XML document where attachment information shall be written (required)xPath- the XPath that will serve as the parent element for the attachment elements (must point to a valid element in the document)attachmentNamesToInclude- the set of attachment names to include (optional; if not specified, all attachments will be included)
-