Class AttachmentPersistMetaData
java.lang.Object
de.xima.fc.mdl.form.AttachmentPersistMetaData
- All Implemented Interfaces:
Serializable
POJO model for the metadata of a form upload, identified by its UUID. The frontend server sends this data to the
master server, which then uses this data to e.g. compute the final file name for an upload.
- Author:
- XIMA MEDIA GmbH
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionAttachmentPersistMetaData(String orgFileName, String uuid, String outputAlias) Deprecated.AttachmentPersistMetaData(String orgFileName, String uuid, String outputAlias, boolean changed, boolean originalUpload, String originalUploadUuid) -
Method Summary
Modifier and TypeMethodDescriptiongetUuid()booleanbooleanvoidsetFinalFileName(String finalFileName)
-
Constructor Details
-
AttachmentPersistMetaData
- Parameters:
orgFileName- Original file name, as provided by the original HTTP request.uuid- UUID of the attachment.outputAlias- Optional pattern for the new file name of the attachment.
-
AttachmentPersistMetaData
public AttachmentPersistMetaData(String orgFileName, String uuid, String outputAlias, boolean changed, boolean originalUpload, String originalUploadUuid) - Parameters:
orgFileName- Original file name, as provided by the original HTTP request.uuid- UUID of the attachment.outputAlias- Optional pattern for the new file name of the attachment.changed- Whether the attachment was changed. Whenfalse, this data refers to an existing attachments that should be kept as-is.originalUpload- true if this meta data belongs to the original upload, false if it's the result of some upload post-processing (e.g. PDF conversion)originalUploadUuid- UUID of the related original (unconverted) upload if there's one - null if this metadata belongs to the original upload
-
-
Method Details
-
getOutputAlias
- Returns:
- Optional pattern for the new file name of the attachment.
-
getUuid
- Returns:
- UUID of the attachment.
-
getOrgFileName
- Returns:
- Original file name, as provided by the original HTTP request.
-
isChanged
public boolean isChanged()- Returns:
- Whether the attachment was changed. When
false, this data refers to an existing attachments that should be kept as-is. In that case, bothgetOutputAlias()andgetOrgFileName()are empty.
-
isOriginalUpload
public boolean isOriginalUpload()- Returns:
- true if this metadata belongs to the original (unconverted) upload, false if it's the result of upload post-processing (as e.g. the PDF conversion)
-
getOriginalUploadUuid
- Returns:
- UUID of the related original (unconverted) upload. This property is only set if this metadata belongs to the result of upload post-processing (as e.g. the PDF conversion) AND the original upload is configured to be preserved.
-
setFinalFileName
-
getFinalFileName
-
AttachmentPersistMetaData(String, String, String, boolean, boolean, String)