Package de.xima.fc.mdl.attachment
Class AttachmentPersistData
- java.lang.Object
-
- de.xima.fc.mdl.attachment.AttachmentPersistData
-
- All Implemented Interfaces:
Serializable
public class AttachmentPersistData extends Object implements Serializable
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AttachmentPersistData
forExistingAttachment(Attachment attachment, String oldFileName)
static AttachmentPersistData
forNewAttachment(Attachment attachment)
static AttachmentPersistData
forUnchangedAttachment(Attachment attachment, String oldFileName)
Attachment
getAttachment()
String
getOldFileName()
boolean
isChanged()
-
-
-
Method Detail
-
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)
-
-