public class MailBackend extends CoreConnect
logger, storage
Constructor and Description |
---|
MailBackend(ISyncStorage storage,
FolderBackend folderBackend) |
Modifier and Type | Method and Description |
---|---|
void |
delete(BackendSession bs,
java.util.Collection<CollectionItem> serverIds,
java.lang.Boolean moveToTrash) |
AppData |
fetch(BackendSession bs,
BodyOptions bodyParams,
ItemChangeReference ic) |
java.util.Map<java.lang.String,AppData> |
fetchMultiple(BackendSession bs,
BodyOptions bodyParams,
int collectionId,
java.util.List<java.lang.String> uids) |
void |
forwardEmail(BackendSession bs,
com.google.common.io.ByteSource mailContent,
java.lang.Boolean saveInSent,
java.lang.String collectionId,
java.lang.String serverId,
boolean includePrevious) |
MSAttachementData |
getAttachment(BackendSession bs,
java.lang.String attachmentId) |
AttachmentResponse |
getAttachmentMetadata(java.lang.String attachmentId) |
Changes |
getContentChanges(BackendSession bs,
SyncState state,
java.lang.Integer collectionId,
boolean hasFilterTypeChanged) |
java.util.List<MoveItemsResponse.Response> |
move(BackendSession bs,
BMFolder srcFolder,
BMFolder dstFolder,
java.util.List<CollectionItem> items) |
void |
purgeFolder(BackendSession bs,
BMFolder f,
boolean deleteSubFolder) |
void |
replyToEmail(BackendSession bs,
com.google.common.io.ByteSource mailContent,
java.lang.Boolean saveInSent,
java.lang.String cid,
java.lang.String serverId,
boolean includePrevious) |
void |
sendEmail(SendMailData mail) |
CollectionItem |
store(BackendSession bs,
int collectionId,
com.google.common.base.Optional<java.lang.String> serverId,
IApplicationData data) |
getAddressbookService, getCalendarService, getContainerUid, getFolder, getItemChange, getItemUid, getServerId, getService, getService, getTodoListService
public MailBackend(ISyncStorage storage, FolderBackend folderBackend)
public Changes getContentChanges(BackendSession bs, SyncState state, java.lang.Integer collectionId, boolean hasFilterTypeChanged) throws ActiveSyncException
ActiveSyncException
public void delete(BackendSession bs, java.util.Collection<CollectionItem> serverIds, java.lang.Boolean moveToTrash)
public CollectionItem store(BackendSession bs, int collectionId, com.google.common.base.Optional<java.lang.String> serverId, IApplicationData data) throws ActiveSyncException
ActiveSyncException
public java.util.List<MoveItemsResponse.Response> move(BackendSession bs, BMFolder srcFolder, BMFolder dstFolder, java.util.List<CollectionItem> items) throws ActiveSyncException
ActiveSyncException
public void sendEmail(SendMailData mail) throws ActiveSyncException
mail
- ActiveSyncException
public void replyToEmail(BackendSession bs, com.google.common.io.ByteSource mailContent, java.lang.Boolean saveInSent, java.lang.String cid, java.lang.String serverId, boolean includePrevious) throws ServerErrorException
bs
- mailContent
- saveInSent
- collectionId
- serverId
- ServerErrorException
public void forwardEmail(BackendSession bs, com.google.common.io.ByteSource mailContent, java.lang.Boolean saveInSent, java.lang.String collectionId, java.lang.String serverId, boolean includePrevious) throws ActiveSyncException
ActiveSyncException
public MSAttachementData getAttachment(BackendSession bs, java.lang.String attachmentId) throws ObjectNotFoundException
bs
- attachmentId
- ObjectNotFoundException
public AttachmentResponse getAttachmentMetadata(java.lang.String attachmentId) throws ObjectNotFoundException
ObjectNotFoundException
public void purgeFolder(BackendSession bs, BMFolder f, boolean deleteSubFolder) throws NotAllowedException
NotAllowedException
public AppData fetch(BackendSession bs, BodyOptions bodyParams, ItemChangeReference ic) throws ActiveSyncException
ActiveSyncException
public java.util.Map<java.lang.String,AppData> fetchMultiple(BackendSession bs, BodyOptions bodyParams, int collectionId, java.util.List<java.lang.String> uids) throws ActiveSyncException
ActiveSyncException
Copyright © 2021. All Rights Reserved.