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:
  • Constructor Details

    • 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)
      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. When false, this data refers to an existing attachments that should be kept as-is.
  • Method Details

    • 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, both getOutputAlias() and getOrgFileName() are empty.
    • setFinalFileName

      public void setFinalFileName(String finalFileName)
    • getFinalFileName

      public String getFinalFileName()