/** * Applies the local changes that have been made to this folder. Calling * this method results in a call to EWS. * * @throws Exception the exception */ public void update() throws Exception { if (this.isDirty()) { if (this.getPropertyBag().getIsUpdateCallNecessary()) { this.getService().updateFolder(this); } } }
/** * Saves this folder in a specific folder. Calling this method results in a * call to EWS. * * @param parentFolderId The Id of the folder in which to save this folder. * @throws Exception the exception */ public void save(FolderId parentFolderId) throws Exception { this.throwIfThisIsNotNew(); EwsUtilities.validateParam(parentFolderId, "parentFolderId"); if (this.isDirty()) { this.getService().createFolder(this, parentFolderId); } }
/** * Applies the local changes that have been made to this folder. Calling * this method results in a call to EWS. * * @throws Exception the exception */ public void update() throws Exception { if (this.isDirty()) { if (this.getPropertyBag().getIsUpdateCallNecessary()) { this.getService().updateFolder(this); } } }
/** * Saves this folder in a specific folder. Calling this method results in a * call to EWS. * * @param parentFolderId The Id of the folder in which to save this folder. * @throws Exception the exception */ public void save(FolderId parentFolderId) throws Exception { this.throwIfThisIsNotNew(); EwsUtilities.validateParam(parentFolderId, "parentFolderId"); if (this.isDirty()) { this.getService().createFolder(this, parentFolderId); } }