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
Modifier and TypeFieldDescriptionstatic final String
The attachment element name used byinvalid reference
AttachmentSummaryUtils#populateAttachmentSummary(Document, String, Submission)
static final String
The attachment key element used byinvalid reference
AttachmentSummaryUtils#populateAttachmentSummary(Document, String, Submission)
static final String
The attachment name element used byinvalid reference
AttachmentSummaryUtils#populateAttachmentSummary(Document, String, Submission)
static final String
The attachment element name used byinvalid reference
AttachmentSummaryUtils#populateAttachmentSummary(Document, String, Submission)
static final String
The content type element used byinvalid reference
AttachmentSummaryUtils#populateAttachmentSummary(Document, String, Submission)
static final String
The document name element used byinvalid reference
AttachmentSummaryUtils#populateAttachmentSummary(Document, String, Submission)
static final String
The file name element used byinvalid reference
AttachmentSummaryUtils#populateAttachmentSummary(Document, String, Submission)
static final String
The file size element used byinvalid reference
AttachmentSummaryUtils#populateAttachmentSummary(Document, String, Submission)
static final String
The formatted file size element used byinvalid reference
AttachmentSummaryUtils#populateAttachmentSummary(Document, String, Submission)
static final String
The file upload type element used byinvalid reference
AttachmentSummaryUtils#populateAttachmentSummary(Document, String, Submission)
static final String
The required flag element used byinvalid reference
AttachmentSummaryUtils#populateAttachmentSummary(Document, String, Submission)
static final String
The submitted manually flag element used byinvalid reference
AttachmentSummaryUtils#populateAttachmentSummary(Document, String, Submission)
static final String
The user description element used byinvalid reference
AttachmentSummaryUtils#populateAttachmentSummary(Document, String, Submission)
static final String
The view URL element used byinvalid reference
AttachmentSummaryUtils#populateAttachmentSummary(Document, String, Submission)
static final String
The virus status element used byinvalid reference
AttachmentSummaryUtils#populateAttachmentSummary(Document, String, Submission)
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
populateAttachmentSummary
(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)
-