Examples of WaveletDataImpl


Examples of org.waveprotocol.wave.model.wave.data.impl.WaveletDataImpl

      final WaveletOperationalizer operationalizer = getWavelets();
      WaveletFactory<OpBasedWavelet> waveletFactory = new WaveletFactory<OpBasedWavelet>() {
        @Override
        public OpBasedWavelet create(WaveId waveId, WaveletId id, ParticipantId creator) {
          long now = System.currentTimeMillis();
          ObservableWaveletData data = new WaveletDataImpl(id,
              creator,
              now,
              0L,
              HashedVersion.unsigned(0),
              now,
View Full Code Here

Examples of org.waveprotocol.wave.model.wave.data.impl.WaveletDataImpl

    HashedVersion version = deserialize(snapshot.getVersion());
    long lmt = snapshot.getLastModifiedTime();
    long ctime = snapshot.getCreationTime();
    long lmv = version.getVersion();

    WaveletDataImpl waveletData =
        new WaveletDataImpl(id, creator, ctime, lmv, version, lmt, waveId, docFactory);
    for (String participant : snapshot.getParticipantId()) {
      waveletData.addParticipant(new ParticipantId(participant));
    }
    for (DocumentSnapshot docSnapshot : snapshot.getDocument()) {
      deserialize(waveletData, docSnapshot);
    }
    return waveletData;
View Full Code Here

Examples of org.waveprotocol.wave.model.wave.data.impl.WaveletDataImpl

      // Now build one that has the same setup state as that required by
      // undercurrent (complex issue with the per-document output sinks).
      WaveViewDataImpl newData = WaveViewDataImpl.create(sampleData.getWaveId());
      WaveletDataImpl.Factory copier = WaveletDataImpl.Factory.create(docFactory);
      for (ReadableWaveletData src : sampleData.getWavelets()) {
        WaveletDataImpl copied = copier.create(src);
        for (ParticipantId p : src.getParticipants()) {
          copied.addParticipant(p);
        }
        copied.setVersion(copied.getVersion());
        copied.setHashedVersion(src.getHashedVersion());
        copied.setLastModifiedTime(src.getLastModifiedTime());
        newData.addWavelet(copied);
      }
      return newData;
    }
View Full Code Here

Examples of org.waveprotocol.wave.model.wave.data.impl.WaveletDataImpl

            private final ObservableWaveletData.Factory<WaveletDataImpl> inner =
                WaveletDataImpl.Factory.create(docFactory);

            @Override
            public WaveletDataImpl create(ReadableWaveletData data) {
              WaveletDataImpl wavelet = inner.create(data);
              waveData.addWavelet(wavelet);
              return wavelet;
            }
          };
      WaveletFactory<OpBasedWavelet> waveletFactory = BasicFactories
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.