/** * Moves this folder to a specific folder. Calling this method results in a * call to EWS. * * @param destinationFolderName The name of the folder in which to move this folder. * @return A new folder representing this folder in its new location. After * Move completes, this folder does not exist anymore. * @throws Exception the exception */ public Folder move(WellKnownFolderName destinationFolderName) throws Exception { return this.move(new FolderId(destinationFolderName)); }
/** * Moves this folder to a specific folder. Calling this method results in a * call to EWS. * * @param destinationFolderName The name of the folder in which to move this folder. * @return A new folder representing this folder in its new location. After * Move completes, this folder does not exist anymore. * @throws Exception the exception */ public Folder move(WellKnownFolderName destinationFolderName) throws Exception { return this.move(new FolderId(destinationFolderName)); }