@Role
public interface MailResender
Modifier and Type | Method and Description |
---|---|
default List<org.apache.commons.lang3.tuple.Pair<MailStatus,MailStatusResult>> |
resend(Map<String,Object> filterMap,
int offset,
int count)
Resends all mails matching the passed filter map, synchronously (one mail after another).
|
List<org.apache.commons.lang3.tuple.Pair<MailStatus,MailStatusResult>> |
resendAsynchronously(Map<String,Object> filterMap,
int offset,
int count)
Resends all mails matching the passed filter map, asynchronously.
|
MailStatusResult |
resendAsynchronously(String batchId,
String uniqueMessageId)
Resends the mail message matching the passed batch id and message id, asynchronously.
|
List<org.apache.commons.lang3.tuple.Pair<MailStatus,MailStatusResult>> resendAsynchronously(Map<String,Object> filterMap, int offset, int count) throws MailStoreException
filterMap
- the map of Mail Status parameters to match (e.g. "state", "wiki", "batchId", etc)offset
- the number of rows to skip (0 means don't skip any row)count
- the number of rows to return. If 0 then all rows are returnedMailStoreException
- if a mail status failed to be loaded. Note that no exception is raised if a mail
message failed to be loaded from the store, in which case no entry will be returned in the returned list@Unstable default List<org.apache.commons.lang3.tuple.Pair<MailStatus,MailStatusResult>> resend(Map<String,Object> filterMap, int offset, int count) throws MailStoreException
filterMap
- the map of Mail Status parameters to match (e.g. "state", "wiki", "batchId", etc)offset
- the number of rows to skip (0 means don't skip any row)count
- the number of rows to return. If 0 then all rows are returnedMailStoreException
- if a mail status failed to be loaded. Note that no exception is raised if a mail
message failed to be loaded from the store, in which case no entry will be returned in the returned listMailStatusResult resendAsynchronously(String batchId, String uniqueMessageId) throws MailStoreException
batchId
- the id of the batch to which the message to resend belongs touniqueMessageId
- the unique id of the message to resendMailStoreException
- if the corresponding mail message to be resent couldn't be retrieved from the storeCopyright © 2004–2021 XWiki. All rights reserved.