Class AttachmentPersistData

java.lang.Object
de.xima.fc.mdl.attachment.AttachmentPersistData
All Implemented Interfaces:
Serializable

public class AttachmentPersistData extends Object implements Serializable
See Also:
  • Method Details

    • getAttachment

      public Attachment getAttachment()
    • getOldFileName

      @Nullable public String getOldFileName()
    • isChanged

      public boolean isChanged()
      Returns:
      Whether the attachment was changed. When true, either a new file was uploaded or an existing attachments needs to be replaced with a new file.
    • forNewAttachment

      public static AttachmentPersistData forNewAttachment(Attachment attachment)
    • forExistingAttachment

      public static AttachmentPersistData forExistingAttachment(Attachment attachment, String oldFileName)
    • forUnchangedAttachment

      public static AttachmentPersistData forUnchangedAttachment(Attachment attachment, String oldFileName)