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)
Deprecated.AttachmentPersistMetaData(String orgFileName, String uuid, String outputAlias, boolean changed)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getFinalFileName()
String
getOrgFileName()
String
getOutputAlias()
String
getUuid()
boolean
isChanged()
void
setFinalFileName(String finalFileName)
-
-
-
Constructor Detail
-
AttachmentPersistMetaData
@Deprecated public AttachmentPersistMetaData(String orgFileName, String uuid, String outputAlias)
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 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.
-
setFinalFileName
public void setFinalFileName(String finalFileName)
-
getFinalFileName
public String getFinalFileName()
-
-