public class EmailLayoutAttachmentsList extends ListPackManager
BaseManager.PackEntryChangeListener, BaseManager.RegistryEntry
TYPE_EJP, TYPE_NATIVE
Modifier and Type | Method and Description |
---|---|
EmailLayoutAttachment |
create(java.io.File attachmentFile)
Creates a new attachment for the given file or returns the existing attachment with the same SHA1 of the given file.
|
void |
delete(EmailLayoutAttachment attachment)
Deletes the given attachment.
|
EmailLayoutAttachment |
getEmailLayoutAttachment(java.lang.String id)
Returns the attachment for the given id.
|
java.util.List<java.lang.String> |
getEmailLayoutAttachmentIDs()
Return a list of attachment ids of this instance.
|
java.util.List<EmailLayoutAttachment> |
getEmailLayoutAttachments()
Returns all attachments contained in this list.
|
addChangeListener, addChangeListener, addGlobalChangeListener, addPackListener, forgetPush, getPack, isShared, popPack, pushPack, removeChangeListener, removeChangeListener, removeGlobalChangeListener, removePackListener, save, save, toString, writeAsXML
public EmailLayoutAttachment create(java.io.File attachmentFile) throws java.io.IOException
attachmentFile
- the file to attachjava.io.IOException
public void delete(EmailLayoutAttachment attachment) throws CumulusException
attachment
- the attachment to deleteCumulusException
- in case of an errorpublic java.util.List<java.lang.String> getEmailLayoutAttachmentIDs()
String
public EmailLayoutAttachment getEmailLayoutAttachment(java.lang.String id)
id
- the id of the attachment to returnpublic java.util.List<EmailLayoutAttachment> getEmailLayoutAttachments()
www.canto.com
Canto, the Canto logo, the Cumulus logo, and Cumulus are registered trademarks of Canto GmbH, registered in the U.S. and other countries.