@Role
public interface MailContentStore
Modifier and Type | Method and Description |
---|---|
void |
delete(String batchId,
String uniqueMessageId)
Remove a message from the store.
|
ExtendedMimeMessage |
load(javax.mail.Session session,
String batchId,
String uniqueMessageId)
Load message from the store.
|
void |
save(String batchId,
ExtendedMimeMessage message)
Save MimeMessage to the store.
|
void save(String batchId, ExtendedMimeMessage message) throws MailStoreException
batchId
- the batch id of the message to be savedmessage
- the message to serialize in the storeMailStoreException
- when an error occurs when saving the message to the storeExtendedMimeMessage load(javax.mail.Session session, String batchId, String uniqueMessageId) throws MailStoreException
session
- the JavaMail session used to send the mailbatchId
- the batch id of the message that was originally saveduniqueMessageId
- the unique id of the message that was originally savedMailStoreException
- when an error occurs when loading the message from the storevoid delete(String batchId, String uniqueMessageId) throws MailStoreException
batchId
- the batch id of the message that was originally saveduniqueMessageId
- the unique id of the message that was originally savedMailStoreException
- when an error occurs when deleting the message from the storeCopyright © 2004–2021 XWiki. All rights reserved.