/** * Deletes the item in the specified conversation. Calling this method * results in a call to EWS. * * @param idLastSyncTimePairs The pairs of Id of conversation whose item should be deleted * and the date and time conversation was last synced (Items * received after that date will not be deleted). conversation * was last synced (Items received after that dateTime will not * be copied). * @param contextFolderId The Id of the folder that contains the conversation. * @param deleteMode The deletion mode * @throws Exception */ public ServiceResponseCollection<ServiceResponse> deleteItemsInConversations( Iterable<HashMap<ConversationId, Date>> idLastSyncTimePairs, FolderId contextFolderId, DeleteMode deleteMode) throws Exception { return this.applyConversationOneTimeAction( ConversationActionType.Delete, idLastSyncTimePairs, contextFolderId, null, deleteMode, null, ServiceErrorHandling.ReturnErrors); }
/** * Sets the read state for item in conversation. Calling this mehtod would * result in call to EWS. * * @param idLastSyncTimePairs The pairs of Id of conversation whose item should read state * set and the date and time conversation was last synced (Items * received after that date will not have their read state set). * was last synced (Items received after that date will not be * deleted). conversation was last synced (Items received after * that dateTime will not be copied). * @param contextFolderId The Id of the folder that contains the conversation. * @param isRead if set to <c>true</c>, conversation item are marked as read; * otherwise they are marked as unread. * @throws Exception */ public ServiceResponseCollection<ServiceResponse> setReadStateForItemsInConversations( Iterable<HashMap<ConversationId, Date>> idLastSyncTimePairs, FolderId contextFolderId, boolean isRead) throws Exception { return this.applyConversationOneTimeAction( ConversationActionType.SetReadState, idLastSyncTimePairs, contextFolderId, null, null, isRead, ServiceErrorHandling.ReturnErrors); }
/** * Moves the item in the specified conversation to the specified * destination folder. Calling this method results in a call to EWS. * * @param idLastSyncTimePairs The pairs of Id of conversation whose item should be moved * and the dateTime conversation was last synced (Items received * after that dateTime will not be moved). * @param contextFolderId The Id of the folder that contains the conversation. * @param destinationFolderId The Id of the destination folder. * @throws Exception */ public ServiceResponseCollection<ServiceResponse> moveItemsInConversations( Iterable<HashMap<ConversationId, Date>> idLastSyncTimePairs, FolderId contextFolderId, FolderId destinationFolderId) throws Exception { EwsUtilities.validateParam(destinationFolderId, "destinationFolderId"); return this.applyConversationOneTimeAction(ConversationActionType.Move, idLastSyncTimePairs, contextFolderId, destinationFolderId, null, null, ServiceErrorHandling.ReturnErrors); }
/** * Copies the item in the specified conversation to the specified * destination folder. Calling this method results in a call to EWS. * * @param idLastSyncTimePairs The pairs of Id of conversation whose item should be copied * and the dateTime conversation was last synced (Items received * after that dateTime will not be copied). * @param contextFolderId The context folder id. * @param destinationFolderId The destination folder id. * @throws Exception */ public ServiceResponseCollection<ServiceResponse> copyItemsInConversations( Iterable<HashMap<ConversationId, Date>> idLastSyncTimePairs, FolderId contextFolderId, FolderId destinationFolderId) throws Exception { EwsUtilities.validateParam(destinationFolderId, "destinationFolderId"); return this.applyConversationOneTimeAction(ConversationActionType.Copy, idLastSyncTimePairs, contextFolderId, destinationFolderId, null, null, ServiceErrorHandling.ReturnErrors); }
/** * Deletes the item in the specified conversation. Calling this method * results in a call to EWS. * * @param idLastSyncTimePairs The pairs of Id of conversation whose item should be deleted * and the date and time conversation was last synced (Items * received after that date will not be deleted). conversation * was last synced (Items received after that dateTime will not * be copied). * @param contextFolderId The Id of the folder that contains the conversation. * @param deleteMode The deletion mode * @throws Exception */ public ServiceResponseCollection<ServiceResponse> deleteItemsInConversations( Iterable<HashMap<ConversationId, Date>> idLastSyncTimePairs, FolderId contextFolderId, DeleteMode deleteMode) throws Exception { return this.applyConversationOneTimeAction( ConversationActionType.Delete, idLastSyncTimePairs, contextFolderId, null, deleteMode, null, ServiceErrorHandling.ReturnErrors); }
/** * Sets the read state for item in conversation. Calling this mehtod would * result in call to EWS. * * @param idLastSyncTimePairs The pairs of Id of conversation whose item should read state * set and the date and time conversation was last synced (Items * received after that date will not have their read state set). * was last synced (Items received after that date will not be * deleted). conversation was last synced (Items received after * that dateTime will not be copied). * @param contextFolderId The Id of the folder that contains the conversation. * @param isRead if set to <c>true</c>, conversation item are marked as read; * otherwise they are marked as unread. * @throws Exception */ public ServiceResponseCollection<ServiceResponse> setReadStateForItemsInConversations( Iterable<HashMap<ConversationId, Date>> idLastSyncTimePairs, FolderId contextFolderId, boolean isRead) throws Exception { return this.applyConversationOneTimeAction( ConversationActionType.SetReadState, idLastSyncTimePairs, contextFolderId, null, null, isRead, ServiceErrorHandling.ReturnErrors); }
/** * Copies the item in the specified conversation to the specified * destination folder. Calling this method results in a call to EWS. * * @param idLastSyncTimePairs The pairs of Id of conversation whose item should be copied * and the dateTime conversation was last synced (Items received * after that dateTime will not be copied). * @param contextFolderId The context folder id. * @param destinationFolderId The destination folder id. * @throws Exception */ public ServiceResponseCollection<ServiceResponse> copyItemsInConversations( Iterable<HashMap<ConversationId, Date>> idLastSyncTimePairs, FolderId contextFolderId, FolderId destinationFolderId) throws Exception { EwsUtilities.validateParam(destinationFolderId, "destinationFolderId"); return this.applyConversationOneTimeAction(ConversationActionType.Copy, idLastSyncTimePairs, contextFolderId, destinationFolderId, null, null, ServiceErrorHandling.ReturnErrors); }
/** * Moves the item in the specified conversation to the specified * destination folder. Calling this method results in a call to EWS. * * @param idLastSyncTimePairs The pairs of Id of conversation whose item should be moved * and the dateTime conversation was last synced (Items received * after that dateTime will not be moved). * @param contextFolderId The Id of the folder that contains the conversation. * @param destinationFolderId The Id of the destination folder. * @throws Exception */ public ServiceResponseCollection<ServiceResponse> moveItemsInConversations( Iterable<HashMap<ConversationId, Date>> idLastSyncTimePairs, FolderId contextFolderId, FolderId destinationFolderId) throws Exception { EwsUtilities.validateParam(destinationFolderId, "destinationFolderId"); return this.applyConversationOneTimeAction(ConversationActionType.Move, idLastSyncTimePairs, contextFolderId, destinationFolderId, null, null, ServiceErrorHandling.ReturnErrors); }