/** * Sets up a conversation so that any item received within that conversation * is no longer categorized. Calling this method results in a call to EWS. * * @param conversationId The id of the conversation. * @param processSynchronously Indicates whether the method should return only once enabling * this rule and stamping existing item in the conversation is * completely done. If processSynchronously is false, the method * returns immediately. * @throws Exception */ public ServiceResponseCollection<ServiceResponse> disableAlwaysCategorizeItemsInConversations( Iterable<ConversationId> conversationId, boolean processSynchronously) throws Exception { return this.applyConversationAction( ConversationActionType.AlwaysCategorize, conversationId, processSynchronously, null, false, null, ServiceErrorHandling.ReturnErrors); }
/** * Sets up a conversation so that any item received within that conversation * is no longer moved to a specific folder. Calling this method results in a * call to EWS. * * @param conversationIds The conversation ids. * @param processSynchronously Indicates whether the method should return only once disabling * this rule is completely done. If processSynchronously is * false, the method returns immediately. * @throws Exception */ public ServiceResponseCollection<ServiceResponse> disableAlwaysMoveItemsInConversations( Iterable<ConversationId> conversationIds, boolean processSynchronously) throws Exception { return this.applyConversationAction(ConversationActionType.AlwaysMove, conversationIds, processSynchronously, null, false, null, ServiceErrorHandling.ReturnErrors); }
/** * Sets up a conversation so that any item received within that conversation * is always moved to Deleted Items folder. Calling this method results in a * call to EWS. * * @param conversationId The id of the conversation. * @param processSynchronously Indicates whether the method should return only once enabling * this rule and stamping existing item in the conversation is * completely done. If processSynchronously is false, the method * returns immediately. * @throws Exception */ public ServiceResponseCollection<ServiceResponse> enableAlwaysDeleteItemsInConversations( Iterable<ConversationId> conversationId, boolean processSynchronously) throws Exception { return this.applyConversationAction( ConversationActionType.AlwaysDelete, conversationId, processSynchronously, null, true, null, ServiceErrorHandling.ReturnErrors); }
/** * Sets up a conversation so that any item received within that conversation * is no longer moved to Deleted Items folder. Calling this method results * in a call to EWS. * * @param conversationId The id of the conversation. * @param processSynchronously Indicates whether the method should return only once enabling * this rule and stamping existing item in the conversation is * completely done. If processSynchronously is false, the method * returns immediately. * @throws Exception */ public ServiceResponseCollection<ServiceResponse> disableAlwaysDeleteItemsInConversations( Iterable<ConversationId> conversationId, boolean processSynchronously) throws Exception { return this.applyConversationAction( ConversationActionType.AlwaysDelete, conversationId, processSynchronously, null, false, null, ServiceErrorHandling.ReturnErrors); }
/** * Sets up a conversation so that any item received within that conversation * is always moved to a specific folder. Calling this method results in a * call to EWS. * * @param conversationId The Id of the folder to which conversation item should be * moved. * @param destinationFolderId The Id of the destination folder. * @param processSynchronously Indicates whether the method should return only once enabling * this rule and stamping existing item in the conversation is * completely done. If processSynchronously is false, the method * returns immediately. * @throws Exception */ public ServiceResponseCollection<ServiceResponse> enableAlwaysMoveItemsInConversations( Iterable<ConversationId> conversationId, FolderId destinationFolderId, boolean processSynchronously) throws Exception { EwsUtilities.validateParam(destinationFolderId, "destinationFolderId"); return this.applyConversationAction(ConversationActionType.AlwaysMove, conversationId, processSynchronously, null, false, destinationFolderId, ServiceErrorHandling.ReturnErrors); }
/** * Sets up a conversation so that any item received within that conversation * is always categorized. Calling this method results in a call to EWS. * * @param conversationId The id of the conversation. * @param categories The categories that should be stamped on item in the * conversation. * @param processSynchronously Indicates whether the method should return only once enabling * this rule and stamping existing item in the conversation is * completely done. If processSynchronously is false, the method * returns immediately. * @throws Exception */ public ServiceResponseCollection<ServiceResponse> enableAlwaysCategorizeItemsInConversations( Iterable<ConversationId> conversationId, Iterable<String> categories, boolean processSynchronously) throws Exception { EwsUtilities.validateParamCollection(categories.iterator(), "categories"); return this.applyConversationAction( ConversationActionType.AlwaysCategorize, conversationId, processSynchronously, new StringList(categories), false, null, ServiceErrorHandling.ReturnErrors); }
/** * Sets up a conversation so that any item received within that conversation * is always moved to Deleted Items folder. Calling this method results in a * call to EWS. * * @param conversationId The id of the conversation. * @param processSynchronously Indicates whether the method should return only once enabling * this rule and stamping existing item in the conversation is * completely done. If processSynchronously is false, the method * returns immediately. * @throws Exception */ public ServiceResponseCollection<ServiceResponse> enableAlwaysDeleteItemsInConversations( Iterable<ConversationId> conversationId, boolean processSynchronously) throws Exception { return this.applyConversationAction( ConversationActionType.AlwaysDelete, conversationId, processSynchronously, null, true, null, ServiceErrorHandling.ReturnErrors); }
/** * Sets up a conversation so that any item received within that conversation * is no longer moved to a specific folder. Calling this method results in a * call to EWS. * * @param conversationIds The conversation ids. * @param processSynchronously Indicates whether the method should return only once disabling * this rule is completely done. If processSynchronously is * false, the method returns immediately. * @throws Exception */ public ServiceResponseCollection<ServiceResponse> disableAlwaysMoveItemsInConversations( Iterable<ConversationId> conversationIds, boolean processSynchronously) throws Exception { return this.applyConversationAction(ConversationActionType.AlwaysMove, conversationIds, processSynchronously, null, false, null, ServiceErrorHandling.ReturnErrors); }
/** * Sets up a conversation so that any item received within that conversation * is no longer categorized. Calling this method results in a call to EWS. * * @param conversationId The id of the conversation. * @param processSynchronously Indicates whether the method should return only once enabling * this rule and stamping existing item in the conversation is * completely done. If processSynchronously is false, the method * returns immediately. * @throws Exception */ public ServiceResponseCollection<ServiceResponse> disableAlwaysCategorizeItemsInConversations( Iterable<ConversationId> conversationId, boolean processSynchronously) throws Exception { return this.applyConversationAction( ConversationActionType.AlwaysCategorize, conversationId, processSynchronously, null, false, null, ServiceErrorHandling.ReturnErrors); }
/** * Sets up a conversation so that any item received within that conversation * is no longer moved to Deleted Items folder. Calling this method results * in a call to EWS. * * @param conversationId The id of the conversation. * @param processSynchronously Indicates whether the method should return only once enabling * this rule and stamping existing item in the conversation is * completely done. If processSynchronously is false, the method * returns immediately. * @throws Exception */ public ServiceResponseCollection<ServiceResponse> disableAlwaysDeleteItemsInConversations( Iterable<ConversationId> conversationId, boolean processSynchronously) throws Exception { return this.applyConversationAction( ConversationActionType.AlwaysDelete, conversationId, processSynchronously, null, false, null, ServiceErrorHandling.ReturnErrors); }
/** * Sets up a conversation so that any item received within that conversation * is always moved to a specific folder. Calling this method results in a * call to EWS. * * @param conversationId The Id of the folder to which conversation item should be * moved. * @param destinationFolderId The Id of the destination folder. * @param processSynchronously Indicates whether the method should return only once enabling * this rule and stamping existing item in the conversation is * completely done. If processSynchronously is false, the method * returns immediately. * @throws Exception */ public ServiceResponseCollection<ServiceResponse> enableAlwaysMoveItemsInConversations( Iterable<ConversationId> conversationId, FolderId destinationFolderId, boolean processSynchronously) throws Exception { EwsUtilities.validateParam(destinationFolderId, "destinationFolderId"); return this.applyConversationAction(ConversationActionType.AlwaysMove, conversationId, processSynchronously, null, false, destinationFolderId, ServiceErrorHandling.ReturnErrors); }
/** * Sets up a conversation so that any item received within that conversation * is always categorized. Calling this method results in a call to EWS. * * @param conversationId The id of the conversation. * @param categories The categories that should be stamped on item in the * conversation. * @param processSynchronously Indicates whether the method should return only once enabling * this rule and stamping existing item in the conversation is * completely done. If processSynchronously is false, the method * returns immediately. * @throws Exception */ public ServiceResponseCollection<ServiceResponse> enableAlwaysCategorizeItemsInConversations( Iterable<ConversationId> conversationId, Iterable<String> categories, boolean processSynchronously) throws Exception { EwsUtilities.validateParamCollection(categories.iterator(), "categories"); return this.applyConversationAction( ConversationActionType.AlwaysCategorize, conversationId, processSynchronously, new StringList(categories), false, null, ServiceErrorHandling.ReturnErrors); }