/** * Creates and prepends a new operation to the operation queue. * * @param opType the type of the operation. * @param waveId the wave id in which the operation should be applied to. * @param waveletId the wavelet id of the given wave in which the operation * should be applied to. * @param blipId the optional blip id of the given wave in which the operation * should be applied to. Not all operations require blip id. * @param parameters the parameters that should be added as a property of * the operation. * @return an instance of {@link OperationRequest} that represents the queued * operation. */ OperationRequest prependOperation(OperationType opType, WaveId waveId, WaveletId waveletId, String blipId, Parameter... parameters) { return addOperation(opType, waveId, waveletId, blipId, 0, parameters); }
/** * Creates and appends a new operation to the operation queue. * * @param opType the type of the operation. * @param waveId the wave id in which the operation should be applied to. * @param waveletId the wavelet id of the given wave in which the operation * should be applied to. * @param blipId the optional blip id of the given wave in which the operation * should be applied to. Not all operations require blip id. * @param parameters the parameters that should be added as a property of * the operation. * @return an instance of {@link OperationRequest} that represents the queued * operation. */ OperationRequest appendOperation(OperationType opType, WaveId waveId, WaveletId waveletId, String blipId, Parameter... parameters) { return addOperation(opType, waveId, waveletId, blipId, pendingOperations.size(), parameters); }