Package de.xima.fc.mdl.form
Class AttachmentPersistMetaData
- java.lang.Object
-
- de.xima.fc.mdl.form.AttachmentPersistMetaData
-
- All Implemented Interfaces:
Serializable
public class AttachmentPersistMetaData extends Object implements 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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AttachmentPersistMetaData(String orgFileName, String uuid, String outputAlias)
AttachmentPersistMetaData(String orgFileName, String uuid, String outputAlias, boolean changed, boolean originalUpload, String originalUploadUuid)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getFinalFileName()
String
getOrgFileName()
String
getOriginalUploadUuid()
String
getOutputAlias()
String
getUuid()
boolean
isChanged()
boolean
isOriginalUpload()
void
setFinalFileName(String finalFileName)
-
-
-
Constructor Detail
-
AttachmentPersistMetaData
@Deprecated public AttachmentPersistMetaData(String orgFileName, String uuid, String outputAlias)
- 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 Detail
-
getOutputAlias
public String getOutputAlias()
- Returns:
- Optional pattern for the new file name of the attachment.
-
getUuid
public String getUuid()
- Returns:
- UUID of the attachment.
-
getOrgFileName
public String 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
public String 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
public void setFinalFileName(String finalFileName)
-
getFinalFileName
public String getFinalFileName()
-
-