Package com.avoka.tm.vo
Class FileAttach
java.lang.Object
com.avoka.tm.vo.FileAttach
Provide a Transaction File Attachment value object class.
- Since:
- 5.0.0
- 
Constructor SummaryConstructorsConstructorDescriptionFileAttach(com.avoka.fc.core.entity.Attachment attachment) Create a file attachment value object.FileAttach(String attachmentName, String fileName, byte[] fileData) Create a file attachment value object with the given attachment name, file name and file data.FileAttach(String attachmentName, String fileName, byte[] fileData, String userDescription) Create a file attachment value object with the given attachment name, file name, file data and user description.FileAttach(Map fields) Create a unit testing FileAttach value object with the given fields.
- 
Method SummaryModifier and TypeMethodDescriptionThe required attachment key.The required attachment name.The file attachment content type.The file attachment data has been deleted.byte[]The attachment file data.The attachment file data hash (SHA256).The attachment file name.The attachment file data size in bytes.getId()The attachment id (PK).The attachment submission method [ Electronic | Manual ].The time the attachment was uploaded.The user description.The user login name (username).The virus scan status.toString()
- 
Constructor Details- 
FileAttachpublic FileAttach()
- 
FileAttachpublic FileAttach(com.avoka.fc.core.entity.Attachment attachment) Create a file attachment value object.- Parameters:
- attachment- the transaction attachment entity (required)
 
- 
FileAttachCreate a file attachment value object with the given attachment name, file name, file data and user description.- Parameters:
- attachmentName- the required attachment name (required)
- fileName- the file name of the attachment (required). Note: The filename parameter should have the extension specified. e.g., filename.pdf etc.
- fileData- the attachment file data (required)
- userDescription- the user description of the file attachment (optional)
 
- 
FileAttachCreate a file attachment value object with the given attachment name, file name and file data.- Parameters:
- attachmentName- the required attachment name (required)
- fileName- the file name of the attachment (required). Note: The filename parameter should have the extension specified. e.g., filename.pdf etc.
- fileData- the attachment file data (required)
 
- 
FileAttachCreate a unit testing FileAttach value object with the given fields.- Parameters:
- fields- the file attach entity fields (required)
- Since:
- 5.1.4
 
 
- 
- 
Method Details- 
toString
- 
getIdThe attachment id (PK).
- 
getAttachKeyThe required attachment key.
- 
getAttachNameThe required attachment name.
- 
getSubmitMethodThe attachment submission method [ Electronic | Manual ].
- 
getDataDeletedThe file attachment data has been deleted.
- 
getFileNameThe attachment file name.
- 
getFileDatapublic byte[] getFileData()The attachment file data.
- 
getFileDataHashThe attachment file data hash (SHA256).
- 
getFileSizeThe attachment file data size in bytes.
- 
getTimeUploadedThe time the attachment was uploaded.
- 
getContentTypeThe file attachment content type.
- 
getUserDescThe user description.
- 
getUserLoginNameThe user login name (username).
- 
getVirusStatusThe virus scan status.
 
-