public interface IAttachmentsProvider
Modifier and Type | Method and Description |
---|---|
void |
addAttachment(org.apache.commons.fileupload.FileItem fileItem,
String fileEncoding)
Add Attachment
|
boolean |
getHasAttachments()
Returns whether the attachment provider has any attachments
|
boolean |
isAddAttachmentsAvailable()
Returns whether attachments can be added
|
List<IAttachmentItem> |
listAttachments()
Returns a list of the current attachments
|
void |
removeAttachment(String attachmentID)
Remove Attachment
|
void |
updateAttachment(String attachmentID,
org.apache.commons.fileupload.FileItem fileItem,
String fileEncoding)
Update an Attachment
|
boolean isAddAttachmentsAvailable()
void addAttachment(org.apache.commons.fileupload.FileItem fileItem, String fileEncoding)
fileItem
- the attachment contentfileEncoding
- the encoding of the attachment file (if known)void updateAttachment(String attachmentID, org.apache.commons.fileupload.FileItem fileItem, String fileEncoding)
attachmentID
- the id of the attachment to updatefileItem
- the new attachment contentfileEncoding
- the encoding of the attachment file (if known)void removeAttachment(String attachmentID)
attachmentID
- the id of the attachment to removeList<IAttachmentItem> listAttachments()
boolean getHasAttachments()