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 IContentsImporterActiveSyncExceptionpublic void importMessageDeletion(BackendSession bs, ItemDataType type, java.util.Collection<CollectionItem> serverIds, java.lang.Boolean moveToTrash) throws ActiveSyncException
importMessageDeletion in interface IContentsImporterActiveSyncExceptionpublic java.util.List<MoveItemsResponse.Response> importMoveItems(BackendSession bs, ItemDataType type, HierarchyNode srcFolder, HierarchyNode dstFolder, java.util.List<CollectionItem> items) throws ActiveSyncException
importMoveItems in interface IContentsImporterActiveSyncExceptionpublic void sendEmail(SendMailData mail) throws ActiveSyncException
sendEmail in interface IContentsImporterActiveSyncExceptionpublic 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 IContentsImporterActiveSyncExceptionpublic java.lang.String importCalendarUserStatus(BackendSession bs, long itemId, AttendeeStatus userResponse, java.util.Date instanceId)
importCalendarUserStatus in interface IContentsImporterpublic 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 IContentsImporterActiveSyncExceptionpublic void emptyFolderContent(BackendSession bs, HierarchyNode node, CollectionId collectionId, boolean deleteSubFolder) throws CollectionNotFoundException, NotAllowedException
emptyFolderContent in interface IContentsImporterCollectionNotFoundExceptionNotAllowedExceptionCopyright © 2023. All Rights Reserved.