Package de.xima.fc.mdl.attachment
Class AttachmentPersistData
java.lang.Object
de.xima.fc.mdl.attachment.AttachmentPersistData
- All Implemented Interfaces:
Serializable
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic AttachmentPersistData
forExistingAttachment
(Attachment attachment, String oldFileName) static AttachmentPersistData
forNewAttachment
(Attachment attachment) static AttachmentPersistData
forUnchangedAttachment
(Attachment attachment, String oldFileName) boolean
-
Method Details
-
getAttachment
-
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
-
forExistingAttachment
public static AttachmentPersistData forExistingAttachment(Attachment attachment, String oldFileName) -
forUnchangedAttachment
public static AttachmentPersistData forUnchangedAttachment(Attachment attachment, String oldFileName)
-