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 Summary
ConstructorDescriptionFileAttach
(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 Summary
Modifier 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
-
FileAttach
public FileAttach() -
FileAttach
public FileAttach(com.avoka.fc.core.entity.Attachment attachment) Create a file attachment value object.- Parameters:
attachment
- the transaction attachment entity (required)
-
FileAttach
Create 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)
-
FileAttach
Create 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)
-
FileAttach
Create 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
-
getId
The attachment id (PK). -
getAttachKey
The required attachment key. -
getAttachName
The required attachment name. -
getSubmitMethod
The attachment submission method [ Electronic | Manual ]. -
getDataDeleted
The file attachment data has been deleted. -
getFileName
The attachment file name. -
getFileData
public byte[] getFileData()The attachment file data. -
getFileDataHash
The attachment file data hash (SHA256). -
getFileSize
The attachment file data size in bytes. -
getTimeUploaded
The time the attachment was uploaded. -
getContentType
The file attachment content type. -
getUserDesc
The user description. -
getUserLoginName
The user login name (username). -
getVirusStatus
The virus scan status.
-