Package org.waveprotocol.wave.model.wave

Examples of org.waveprotocol.wave.model.wave.ReadOnlyWaveView


    OpBasedWavelet wavelet =
      new OpBasedWavelet(waveId, waveletData, new BasicWaveletOperationContextFactory(author),
          ParticipationHelper.DEFAULT,
          SilentOperationSink.Executor.<WaveletOperation, WaveletData>build(waveletData),
          SilentOperationSink.VOID);
    ReadOnlyWaveView waveView = new ReadOnlyWaveView(waveId);
    waveView.addWavelet(wavelet);
   
    if (isConversational) {
      ConversationView conversationView = WaveBasedConversationView.create(waveView, FakeIdGenerator.create());
      WaveletBasedConversation.makeWaveletConversational(wavelet);
      conversation = conversationView.getRoot();
View Full Code Here


        "Expected conversational wavelet, got " + wavelet.getId());
    Preconditions.checkArgument(WaveletBasedConversation.waveletHasConversation(wavelet),
        "Conversation can't be build on a wavelet " + wavelet.getId()
            + " without conversation structure");

    ReadOnlyWaveView wv = new ReadOnlyWaveView(wavelet.getWaveId());
    wv.addWavelet(wavelet);

    return WaveBasedConversationView.create(wv, idGenerator);
  }
View Full Code Here

        "Expected conversational wavelet, got " + wavelet.getId());
    Preconditions.checkArgument(WaveletBasedConversation.waveletHasConversation(wavelet),
        "Conversation can't be build on a wavelet " + wavelet.getId()
            + " without conversation structure");

    ReadOnlyWaveView wv = new ReadOnlyWaveView(wavelet.getWaveId());
    wv.addWavelet(wavelet);

    return WaveBasedConversationView.create(wv, idGenerator);
  }
View Full Code Here

TOP

Related Classes of org.waveprotocol.wave.model.wave.ReadOnlyWaveView

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.