Package com.avoka.fc.core.util
Class AttachmentSummaryUtils
- java.lang.Object
-
- com.avoka.fc.core.util.AttachmentSummaryUtils
-
public class AttachmentSummaryUtils extends Object
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
Fields Modifier and Type Field Description static String
ATTACHMENT_ELEMENT
The attachment element name used byAttachmentSummaryUtils#populateAttachmentSummary(Document, String, Submission)
static String
ATTACHMENT_KEY_ELEMENT
The attachment key element used byAttachmentSummaryUtils#populateAttachmentSummary(Document, String, Submission)
static String
ATTACHMENT_NAME_ELEMENT
The attachment name element used byAttachmentSummaryUtils#populateAttachmentSummary(Document, String, Submission)
static String
ATTACHMENT_SUMMARY_ELEMENT
The attachment element name used byAttachmentSummaryUtils#populateAttachmentSummary(Document, String, Submission)
static String
CONTENT_TYPE_ELEMENT
The content type element used byAttachmentSummaryUtils#populateAttachmentSummary(Document, String, Submission)
static String
DOCUMENT_CODE_ELEMENT
The document name element used byAttachmentSummaryUtils#populateAttachmentSummary(Document, String, Submission)
static String
FILE_NAME_ELEMENT
The file name element used byAttachmentSummaryUtils#populateAttachmentSummary(Document, String, Submission)
static String
FILE_SIZE_ELEMENT
The file size element used byAttachmentSummaryUtils#populateAttachmentSummary(Document, String, Submission)
static String
FILE_SIZE_FORMATTED_ELEMENT
The formatted file size element used byAttachmentSummaryUtils#populateAttachmentSummary(Document, String, Submission)
static String
FILE_UPLOAD_TYPE_ELEMENT
The file upload type element used byAttachmentSummaryUtils#populateAttachmentSummary(Document, String, Submission)
static String
REQUIRED_ELEMENT
The required flag element used byAttachmentSummaryUtils#populateAttachmentSummary(Document, String, Submission)
static String
SUBMITTED_MANUALLY_ELEMENT
The submitted manually flag element used byAttachmentSummaryUtils#populateAttachmentSummary(Document, String, Submission)
static String
USER_DESCRIPTION_ELEMENT
The user description element used byAttachmentSummaryUtils#populateAttachmentSummary(Document, String, Submission)
static String
VIEW_URL_ELEMENT
The view URL element used byAttachmentSummaryUtils#populateAttachmentSummary(Document, String, Submission)
static String
VIRUS_STATUS_ELEMENT
The virus status element used byAttachmentSummaryUtils#populateAttachmentSummary(Document, String, Submission)
-
Constructor Summary
Constructors Constructor Description AttachmentSummaryUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
populateAttachmentSummary(Submission submission, Document document, String xPath, Set<String> attachmentNamesToInclude)
Populates information about a submission's attachments into an XML document.
-
-
-
Field Detail
-
ATTACHMENT_SUMMARY_ELEMENT
public static final String ATTACHMENT_SUMMARY_ELEMENT
The attachment element name used byAttachmentSummaryUtils#populateAttachmentSummary(Document, String, Submission)
- See Also:
- Constant Field Values
-
ATTACHMENT_ELEMENT
public static final String ATTACHMENT_ELEMENT
The attachment element name used byAttachmentSummaryUtils#populateAttachmentSummary(Document, String, Submission)
- See Also:
- Constant Field Values
-
ATTACHMENT_KEY_ELEMENT
public static final String ATTACHMENT_KEY_ELEMENT
The attachment key element used byAttachmentSummaryUtils#populateAttachmentSummary(Document, String, Submission)
- See Also:
- Constant Field Values
-
ATTACHMENT_NAME_ELEMENT
public static final String ATTACHMENT_NAME_ELEMENT
The attachment name element used byAttachmentSummaryUtils#populateAttachmentSummary(Document, String, Submission)
- See Also:
- Constant Field Values
-
CONTENT_TYPE_ELEMENT
public static final String CONTENT_TYPE_ELEMENT
The content type element used byAttachmentSummaryUtils#populateAttachmentSummary(Document, String, Submission)
- See Also:
- Constant Field Values
-
DOCUMENT_CODE_ELEMENT
public static final String DOCUMENT_CODE_ELEMENT
The document name element used byAttachmentSummaryUtils#populateAttachmentSummary(Document, String, Submission)
- See Also:
- Constant Field Values
-
FILE_NAME_ELEMENT
public static final String FILE_NAME_ELEMENT
The file name element used byAttachmentSummaryUtils#populateAttachmentSummary(Document, String, Submission)
- See Also:
- Constant Field Values
-
FILE_SIZE_ELEMENT
public static final String FILE_SIZE_ELEMENT
The file size element used byAttachmentSummaryUtils#populateAttachmentSummary(Document, String, Submission)
- See Also:
- Constant Field Values
-
FILE_SIZE_FORMATTED_ELEMENT
public static final String FILE_SIZE_FORMATTED_ELEMENT
The formatted file size element used byAttachmentSummaryUtils#populateAttachmentSummary(Document, String, Submission)
- See Also:
- Constant Field Values
-
FILE_UPLOAD_TYPE_ELEMENT
public static final String FILE_UPLOAD_TYPE_ELEMENT
The file upload type element used byAttachmentSummaryUtils#populateAttachmentSummary(Document, String, Submission)
- See Also:
- Constant Field Values
-
REQUIRED_ELEMENT
public static final String REQUIRED_ELEMENT
The required flag element used byAttachmentSummaryUtils#populateAttachmentSummary(Document, String, Submission)
- See Also:
- Constant Field Values
-
SUBMITTED_MANUALLY_ELEMENT
public static final String SUBMITTED_MANUALLY_ELEMENT
The submitted manually flag element used byAttachmentSummaryUtils#populateAttachmentSummary(Document, String, Submission)
- See Also:
- Constant Field Values
-
USER_DESCRIPTION_ELEMENT
public static final String USER_DESCRIPTION_ELEMENT
The user description element used byAttachmentSummaryUtils#populateAttachmentSummary(Document, String, Submission)
- See Also:
- Constant Field Values
-
VIEW_URL_ELEMENT
public static final String VIEW_URL_ELEMENT
The view URL element used byAttachmentSummaryUtils#populateAttachmentSummary(Document, String, Submission)
- See Also:
- Constant Field Values
-
VIRUS_STATUS_ELEMENT
public static final String VIRUS_STATUS_ELEMENT
The virus status element used byAttachmentSummaryUtils#populateAttachmentSummary(Document, String, Submission)
- See Also:
- Constant Field Values
-
-
Method Detail
-
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)
-
-