Interface MailArchive
- All Known Implementing Classes:
MailArchiveImpl
public interface MailArchive
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final recordstatic class -
Method Summary
Modifier and TypeMethodDescriptioncom.google.common.util.concurrent.ListenableFuture<EntityId> add(MailArchive.MailArchiveEntry mailArchiveEntry) Add an entry to the MailArchive.voidaddAttachment(UUID taskUuid, Attachment attachment) Add attachments which are referenced inMailArchive.MailArchiveEntry.getAttachmentIds().
-
Method Details
-
add
com.google.common.util.concurrent.ListenableFuture<EntityId> add(MailArchive.MailArchiveEntry mailArchiveEntry) throws MailException Add an entry to the MailArchive. The attachments inMailArchive.MailArchiveEntry.getAttachmentIds()have to be added to the archive before this method is called (usingaddAttachment(UUID, Attachment).- Parameters:
mailArchiveEntry- seeMailArchive.MailArchiveEntryto build the mailArchiveEntry parameter for this method- Throws:
MailException
-
addAttachment
Add attachments which are referenced inMailArchive.MailArchiveEntry.getAttachmentIds(). The attachments have to be added, beforeadd(MailArchiveEntry)is called.- Parameters:
taskUuid-attachment-
-