/** * Imports deltas to wavelet. * * @param waveId the id of the wave to import. * @param waveletId the id of the wavelet to import. * @param history the history of deltas. * @param rpcServerUrl the URL of the JSON-RPC request handler. * @return the version from which importing started. * @throws IOException if there is a problem fetching the wavelet. */ public long importRawDeltas(WaveId waveId, WaveletId waveletId, List<byte[]> history, String rpcServerUrl) throws IOException { OperationQueue opQueue = new OperationQueue(); opQueue.importRawDeltas(waveId, waveletId, history); Map<ParamsProperty, Object> response = makeSingleOperationRpc(opQueue, rpcServerUrl); return (Long)response.get(ParamsProperty.IMPORTED_FROM_VERSION); }