Class AttachmentPersistData
java.lang.Object
de.xima.fc.mdl.attachment.AttachmentPersistData
- All Implemented Interfaces:
Serializable
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic AttachmentPersistDataforExistingAttachment(Attachment attachment, String oldFileName) static AttachmentPersistDataforNewAttachment(Attachment attachment, String originalAttachmentUuid) static AttachmentPersistDataforUnchangedAttachment(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.
-
getOriginalAttachmentUuid
- Returns:
- If this attachment is the result of some post-processing applied to the original attachment and, in addition, the original attachment is configured to be preserved, this property holds the UUID of the original attachment.
-
getProcessingProtocol
- Returns:
- a list protocol entries concerning upload post-processing, may be empty but not null
-
forNewAttachment
public static AttachmentPersistData forNewAttachment(Attachment attachment, String originalAttachmentUuid) -
forExistingAttachment
public static AttachmentPersistData forExistingAttachment(Attachment attachment, String oldFileName) -
forUnchangedAttachment
public static AttachmentPersistData forUnchangedAttachment(Attachment attachment, String oldFileName)
-