Package de.xima.fc.mdl.attachment
Class AttachmentPersistBuildData
- java.lang.Object
 - 
- de.xima.fc.mdl.attachment.AttachmentPersistBuildData
 
 
- 
- All Implemented Interfaces:
 Serializable
public final class AttachmentPersistBuildData extends Object implements Serializable
POJO class used when a form with uploads was submitted. Describes which newly uploaded files need to be persisted, which existing attachments need to be deleted, and which existing attachments need to be perserved.- See Also:
 - Serialized Form
 
 
- 
- 
Constructor Summary
Constructors Constructor Description AttachmentPersistBuildData(String userName, List<AttachmentPersistData> persistList, List<Attachment> delList)Creates a new POJO with the data describing which attachments to persist and which attachments to delete. 
- 
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AttachmentPersistBuildDataempty(String userName)List<Attachment>getToDelete()List<AttachmentPersistData>getToPersist()StringgetUserName() 
 - 
 
- 
- 
Constructor Detail
- 
AttachmentPersistBuildData
public AttachmentPersistBuildData(String userName, List<AttachmentPersistData> persistList, List<Attachment> delList)
Creates a new POJO with the data describing which attachments to persist and which attachments to delete.- Parameters:
 userName- Username of the user who initiated the persist process.persistList- List of newly uploaded attachments that need to be persisted.delList- List of existing attachments that need to be deleted.
 
 - 
 
- 
Method Detail
- 
getToDelete
public List<Attachment> getToDelete()
- Returns:
 - List of existing attachments that need to be deleted.
 
 
- 
getToPersist
public List<AttachmentPersistData> getToPersist()
- Returns:
 - List of newly uploaded attachments that need to be persisted.
 
 
- 
getUserName
public String getUserName()
- Returns:
 - Username of the user who initiated the persist process.
 
 
- 
empty
public static AttachmentPersistBuildData empty(String userName)
 
 - 
 
 -