public class ContentsImporter extends java.lang.Object implements IContentsImporter
Constructor and Description |
---|
ContentsImporter(MailBackend mailBackend,
CalendarBackend calBackend,
ContactsBackend contactBackend,
TaskBackend taskBackend) |
Modifier and Type | Method and Description |
---|---|
void |
emptyFolderContent(BackendSession bs,
HierarchyNode node,
CollectionId collectionId,
boolean deleteSubFolder) |
void |
forwardEmail(BackendSession bs,
com.google.common.io.ByteSource mailContent,
java.lang.Boolean saveInSent,
java.lang.String collectionId,
java.lang.String serverId,
boolean includePrevious) |
java.lang.String |
importCalendarUserStatus(BackendSession bs,
long itemId,
AttendeeStatus userResponse,
java.util.Date instanceId) |
CollectionItem |
importMessageChange(BackendSession bs,
CollectionId collectionId,
ItemDataType type,
java.util.Optional<java.lang.String> serverId,
IApplicationData data,
CollectionSyncRequest.Options.ConflicResolution conflictPolicy,
SyncState syncState) |
void |
importMessageDeletion(BackendSession bs,
ItemDataType type,
java.util.Collection<CollectionItem> serverIds,
java.lang.Boolean moveToTrash) |
java.util.List<MoveItemsResponse.Response> |
importMoveItems(BackendSession bs,
ItemDataType type,
HierarchyNode srcFolder,
HierarchyNode dstFolder,
java.util.List<CollectionItem> items) |
void |
replyEmail(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) |
public ContentsImporter(MailBackend mailBackend, CalendarBackend calBackend, ContactsBackend contactBackend, TaskBackend taskBackend)
public CollectionItem importMessageChange(BackendSession bs, CollectionId collectionId, ItemDataType type, java.util.Optional<java.lang.String> serverId, IApplicationData data, CollectionSyncRequest.Options.ConflicResolution conflictPolicy, SyncState syncState) throws ActiveSyncException
importMessageChange
in interface IContentsImporter
ActiveSyncException
public void importMessageDeletion(BackendSession bs, ItemDataType type, java.util.Collection<CollectionItem> serverIds, java.lang.Boolean moveToTrash) throws ActiveSyncException
importMessageDeletion
in interface IContentsImporter
ActiveSyncException
public java.util.List<MoveItemsResponse.Response> importMoveItems(BackendSession bs, ItemDataType type, HierarchyNode srcFolder, HierarchyNode dstFolder, java.util.List<CollectionItem> items) throws ActiveSyncException
importMoveItems
in interface IContentsImporter
ActiveSyncException
public void sendEmail(SendMailData mail) throws ActiveSyncException
sendEmail
in interface IContentsImporter
ActiveSyncException
public void replyEmail(BackendSession bs, com.google.common.io.ByteSource mailContent, java.lang.Boolean saveInSent, java.lang.String collectionId, java.lang.String serverId, boolean includePrevious) throws ActiveSyncException
replyEmail
in interface IContentsImporter
ActiveSyncException
public java.lang.String importCalendarUserStatus(BackendSession bs, long itemId, AttendeeStatus userResponse, java.util.Date instanceId)
importCalendarUserStatus
in interface IContentsImporter
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
forwardEmail
in interface IContentsImporter
ActiveSyncException
public void emptyFolderContent(BackendSession bs, HierarchyNode node, CollectionId collectionId, boolean deleteSubFolder) throws CollectionNotFoundException, NotAllowedException
emptyFolderContent
in interface IContentsImporter
CollectionNotFoundException
NotAllowedException
Copyright © 2021. All Rights Reserved.