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 AttachmentPersistDataforExistingAttachment(Attachment attachment, String oldFileName)static AttachmentPersistDataforNewAttachment(Attachment attachment, String originalAttachmentUuid)static AttachmentPersistDataforUnchangedAttachment(Attachment attachment, String oldFileName)AttachmentgetAttachment()StringgetOldFileName()StringgetOriginalAttachmentUuid()List<ProtocolEntryProcessing>getProcessingProtocol()booleanisChanged() 
 - 
 
- 
- 
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. 
 
- 
getOriginalAttachmentUuid
public String 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
public List<ProtocolEntryProcessing> 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)
 
 - 
 
 -