public class MailBackend extends CoreConnect
logger
Constructor and Description |
---|
MailBackend(ISyncStorage storage) |
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.Long,AppData> |
fetchMultiple(BackendSession bs,
BodyOptions bodyParams,
CollectionId collectionId,
java.util.List<java.lang.Long> ids) |
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,
CollectionId collectionId,
boolean hasFilterTypeChanged) |
java.util.List<MoveItemsResponse.Response> |
move(BackendSession bs,
HierarchyNode srcFolder,
HierarchyNode dstFolder,
java.util.List<CollectionItem> items) |
void |
purgeFolder(BackendSession bs,
HierarchyNode node,
CollectionId collectionId,
boolean deleteSubFolder) |
void |
replyToEmail(BackendSession bs,
com.google.common.io.ByteSource mailContent,
java.lang.Boolean saveInSent,
java.lang.String collectionId,
java.lang.String serverId,
boolean includePrevious) |
void |
sendEmail(SendMailData mail) |
CollectionItem |
store(BackendSession bs,
CollectionId collectionId,
java.util.Optional<java.lang.String> serverId,
IApplicationData data) |
getAddressbookService, getAdmin0Service, getCalendarService, getIMailboxFoldersService, getItemChange, getItemId, getMailboxItemsService, getService, getService, getTodoListService
public MailBackend(ISyncStorage storage)
public Changes getContentChanges(BackendSession bs, SyncState state, CollectionId collectionId, boolean hasFilterTypeChanged) throws ActiveSyncException
ActiveSyncException
public void delete(BackendSession bs, java.util.Collection<CollectionItem> serverIds, java.lang.Boolean moveToTrash) throws CollectionNotFoundException
CollectionNotFoundException
public CollectionItem store(BackendSession bs, CollectionId collectionId, java.util.Optional<java.lang.String> serverId, IApplicationData data) throws ActiveSyncException
ActiveSyncException
public java.util.List<MoveItemsResponse.Response> move(BackendSession bs, HierarchyNode srcFolder, HierarchyNode dstFolder, java.util.List<CollectionItem> items)
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 collectionId, 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)
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, HierarchyNode node, CollectionId collectionId, boolean deleteSubFolder) throws NotAllowedException
NotAllowedException
public AppData fetch(BackendSession bs, BodyOptions bodyParams, ItemChangeReference ic) throws ActiveSyncException
ActiveSyncException
public java.util.Map<java.lang.Long,AppData> fetchMultiple(BackendSession bs, BodyOptions bodyParams, CollectionId collectionId, java.util.List<java.lang.Long> ids) throws ActiveSyncException
ActiveSyncException
Copyright © 2021. All Rights Reserved.