/** * Initializes a new instance of the class. * * @param referenceItem the reference item * @throws Exception the exception */ public PostReply(Item referenceItem) throws Exception { super(referenceItem.getService()); referenceItem.throwIfThisIsNew(); this.referenceItem = referenceItem; }
/** * Initializes a new instance of the class. * * @param referenceItem the reference item * @throws Exception the exception */ public SuppressReadReceipt(Item referenceItem) throws Exception { super(referenceItem.getService()); referenceItem.throwIfThisIsNew(); this.referenceItem = referenceItem; }
/** * Initializes a new instance of the RemoveFromCalendar class. * * @param referenceItem The reference item * @throws Exception the exception */ public RemoveFromCalendar(Item referenceItem) throws Exception { super(referenceItem.getService()); referenceItem.throwIfThisIsNew(); this.referenceItem = referenceItem; }
/** * Initializes a new instance of the class. * * @param referenceItem the reference item * @throws Exception the exception */ protected ResponseObject(Item referenceItem) throws Exception { super(referenceItem.getService()); referenceItem.throwIfThisIsNew(); this.referenceItem = referenceItem; }
/** * The property definition for the Id of this object. * * @param propertySet the property set * @throws Exception the exception */ @Override protected void internalLoad(PropertySet propertySet) throws Exception { this.throwIfThisIsNew(); this.throwIfThisIsAttachment(); ArrayList<Item> itemArry = new ArrayList<Item>(); itemArry.add(this); this.getService().internalLoadPropertiesForItems(itemArry, propertySet, ServiceErrorHandling.ThrowOnError); }
/** * Creates a copy of this item in the specified folder. Calling this method * results in a call to EWS. Copy returns null if the copy operation is * across two mailboxes or between a mailbox and a public folder. * * @param destinationFolderId the destination folder id * @return The copy of this item. * @throws Exception the exception */ public Item copy(FolderId destinationFolderId) throws Exception { this.throwIfThisIsNew(); this.throwIfThisIsAttachment(); EwsUtilities.validateParam(destinationFolderId, "destinationFolderId"); return this.getService().copyItem(this.getId(), destinationFolderId); }
/** * Moves this item to a the specified folder. Calling this method results in * a call to EWS. Move returns null if the move operation is across two * mailboxes or between a mailbox and a public folder. * * @param destinationFolderId the destination folder id * @return The moved copy of this item. * @throws Exception the exception */ public Item move(FolderId destinationFolderId) throws Exception { this.throwIfThisIsNew(); this.throwIfThisIsAttachment(); EwsUtilities.validateParam(destinationFolderId, "destinationFolderId"); return this.getService().moveItem(this.getId(), destinationFolderId); }
/** * Deletes the object. * * @param deleteMode the delete mode * @param sendCancellationsMode the send cancellations mode * @param affectedTaskOccurrences the affected task occurrences * @throws ServiceLocalException the service local exception * @throws Exception the exception */ @Override protected void internalDelete(DeleteMode deleteMode, SendCancellationsMode sendCancellationsMode, AffectedTaskOccurrence affectedTaskOccurrences) throws ServiceLocalException, Exception { this.throwIfThisIsNew(); this.throwIfThisIsAttachment(); // If sendCancellationsMode is null, use the default value that's // appropriate for item type. if (sendCancellationsMode == null) { sendCancellationsMode = this.getDefaultSendCancellationsMode(); } // If affectedTaskOccurrences is null, use the default value that's // appropriate for item type. if (affectedTaskOccurrences == null) { affectedTaskOccurrences = this.getDefaultAffectedTaskOccurrences(); } this.getService().deleteItem(this.getId(), deleteMode, sendCancellationsMode, affectedTaskOccurrences); }
/** * Initializes a new instance of the class. * * @param referenceItem the reference item * @throws Exception the exception */ public SuppressReadReceipt(Item referenceItem) throws Exception { super(referenceItem.getService()); referenceItem.throwIfThisIsNew(); this.referenceItem = referenceItem; }
SendInvitationsOrCancellationsMode sendInvitationsOrCancellationsMode) throws ServiceResponseException, Exception { this.throwIfThisIsNew(); this.throwIfThisIsAttachment();
/** * Initializes a new instance of the class. * * @param referenceItem the reference item * @throws Exception the exception */ protected ResponseObject(Item referenceItem) throws Exception { super(referenceItem.getService()); referenceItem.throwIfThisIsNew(); this.referenceItem = referenceItem; }
/** * Initializes a new instance of the class. * * @param referenceItem the reference item * @throws Exception the exception */ public PostReply(Item referenceItem) throws Exception { super(referenceItem.getService()); referenceItem.throwIfThisIsNew(); this.referenceItem = referenceItem; }
/** * Initializes a new instance of the RemoveFromCalendar class. * * @param referenceItem The reference item * @throws Exception the exception */ public RemoveFromCalendar(Item referenceItem) throws Exception { super(referenceItem.getService()); referenceItem.throwIfThisIsNew(); this.referenceItem = referenceItem; }
/** * The property definition for the Id of this object. * * @param propertySet the property set * @throws Exception the exception */ @Override protected void internalLoad(PropertySet propertySet) throws Exception { this.throwIfThisIsNew(); this.throwIfThisIsAttachment(); ArrayList<Item> itemArry = new ArrayList<Item>(); itemArry.add(this); this.getService().internalLoadPropertiesForItems(itemArry, propertySet, ServiceErrorHandling.ThrowOnError); }
/** * Moves this item to a the specified folder. Calling this method results in * a call to EWS. Move returns null if the move operation is across two * mailboxes or between a mailbox and a public folder. * * @param destinationFolderId the destination folder id * @return The moved copy of this item. * @throws Exception the exception */ public Item move(FolderId destinationFolderId) throws Exception { this.throwIfThisIsNew(); this.throwIfThisIsAttachment(); EwsUtilities.validateParam(destinationFolderId, "destinationFolderId"); return this.getService().moveItem(this.getId(), destinationFolderId); }
/** * Creates a copy of this item in the specified folder. Calling this method * results in a call to EWS. Copy returns null if the copy operation is * across two mailboxes or between a mailbox and a public folder. * * @param destinationFolderId the destination folder id * @return The copy of this item. * @throws Exception the exception */ public Item copy(FolderId destinationFolderId) throws Exception { this.throwIfThisIsNew(); this.throwIfThisIsAttachment(); EwsUtilities.validateParam(destinationFolderId, "destinationFolderId"); return this.getService().copyItem(this.getId(), destinationFolderId); }
/** * Deletes the object. * * @param deleteMode the delete mode * @param sendCancellationsMode the send cancellations mode * @param affectedTaskOccurrences the affected task occurrences * @throws ServiceLocalException the service local exception * @throws Exception the exception */ @Override protected void internalDelete(DeleteMode deleteMode, SendCancellationsMode sendCancellationsMode, AffectedTaskOccurrence affectedTaskOccurrences) throws ServiceLocalException, Exception { this.throwIfThisIsNew(); this.throwIfThisIsAttachment(); // If sendCancellationsMode is null, use the default value that's // appropriate for item type. if (sendCancellationsMode == null) { sendCancellationsMode = this.getDefaultSendCancellationsMode(); } // If affectedTaskOccurrences is null, use the default value that's // appropriate for item type. if (affectedTaskOccurrences == null) { affectedTaskOccurrences = this.getDefaultAffectedTaskOccurrences(); } this.getService().deleteItem(this.getId(), deleteMode, sendCancellationsMode, affectedTaskOccurrences); }
SendInvitationsOrCancellationsMode sendInvitationsOrCancellationsMode) throws ServiceResponseException, Exception { this.throwIfThisIsNew(); this.throwIfThisIsAttachment();