Interface MailArchive
- All Known Implementing Classes:
MailArchiveImpl
public interface MailArchive
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final record
static class
-
Method Summary
Modifier and TypeMethodDescriptioncom.google.common.util.concurrent.ListenableFuture
<EntityId> add
(MailArchive.MailArchiveEntry mailArchiveEntry) Add an entry to the MailArchive.void
addAttachment
(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.MailArchiveEntry
to 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
-
-