Package de.xima.fc.mdl.form
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) -
Method Summary
-
Constructor Details
-
AttachmentPersistMetaData
Deprecated.- 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) - 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.
-
-
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.
-
setFinalFileName
-
getFinalFileName
-
AttachmentPersistMetaData(String, String, String, boolean)