public class EmailManager extends CoreConnect
Modifier and Type | Field and Description |
---|---|
protected static org.slf4j.Logger |
logger |
Modifier and Type | Method and Description |
---|---|
java.io.InputStream |
fetchAttachment(BackendSession bs,
MailFolder folder,
int id,
java.lang.String mimePartAddress,
java.lang.String contentTransferEncoding) |
java.io.InputStream |
fetchMimeStream(BackendSession bs,
MailFolder folder,
long id) |
static EmailManager |
getInstance() |
AirSyncBaseResponse |
loadBody(BackendSession bs,
MailFolder folder,
long id,
BodyOptions options) |
EmailResponse |
loadStructure(BackendSession bs,
MailFolder folder,
long id) |
java.util.List<MoveItemsResponse.Response> |
moveItems(BackendSession bs,
HierarchyNode srcFolder,
HierarchyNode dstFolder,
java.util.List<java.lang.Long> items) |
void |
purgeFolder(BackendSession bs,
MailFolder folder,
CollectionId collectionId,
boolean deleteSubFolder) |
void |
sendEmail(BackendSession bs,
IRenderableMessage email,
java.lang.Boolean saveInSent) |
getAddressbookService, getAdmin0Service, getCalendarService, getIMailboxFoldersService, getItemChange, getItemId, getMailboxItemsService, getService, getService, getTodoListService
public static EmailManager getInstance()
public EmailResponse loadStructure(BackendSession bs, MailFolder folder, long id)
bs
- folder
- id
- public AirSyncBaseResponse loadBody(BackendSession bs, MailFolder folder, long id, BodyOptions options)
public java.io.InputStream fetchMimeStream(BackendSession bs, MailFolder folder, long id)
public java.io.InputStream fetchAttachment(BackendSession bs, MailFolder folder, int id, java.lang.String mimePartAddress, java.lang.String contentTransferEncoding) throws java.lang.InterruptedException, java.util.concurrent.ExecutionException, java.util.concurrent.TimeoutException
java.lang.InterruptedException
java.util.concurrent.ExecutionException
java.util.concurrent.TimeoutException
public java.util.List<MoveItemsResponse.Response> moveItems(BackendSession bs, HierarchyNode srcFolder, HierarchyNode dstFolder, java.util.List<java.lang.Long> items)
public void sendEmail(BackendSession bs, IRenderableMessage email, java.lang.Boolean saveInSent) throws java.lang.Exception
java.lang.Exception
public void purgeFolder(BackendSession bs, MailFolder folder, CollectionId collectionId, boolean deleteSubFolder)
Copyright © 2021. All Rights Reserved.