Package com.google.walkaround.proto

Examples of com.google.walkaround.proto.WalkaroundWaveletSnapshot


  /**
   * First stage of serialization - creates a Protobuf Message class instance
   * from wavelet.
   */
  public WalkaroundWaveletSnapshot createWaveletMessage(WaveletDataImpl waveletData) {
    WalkaroundWaveletSnapshot wavelet = MessageFactoryHelper.createWaveletSnapshot();
    wavelet.setVersion(waveletData.getVersion());
    wavelet.setCreator(waveletData.getCreator().getAddress());
    wavelet.setCreationTime(waveletData.getCreationTime());
    wavelet.setLastModifiedTime(waveletData.getLastModifiedTime());
    wavelet.addAllDocument(listOfDocuments(waveletData));
    wavelet.addAllParticipant(listOfParticipantAddresses(waveletData.getParticipants()));
    return wavelet;
  }
View Full Code Here


      }
      ConnectResult udwResult = udwPair.getFirst();
      WaveletName udwWaveletName = IdHack.udwWaveletNameFromConvObjectIdAndUdwObjectId(
          convObjectId, udwId);
      WaveletDataImpl udw = deserializeWavelet(udwWaveletName, udwPair.getSecond());
      WalkaroundWaveletSnapshot udwSnapshot = serializer.createWaveletMessage(udw);
      LoadedUdw loadedUdw = new LoadedUdw(udwId, udwResult, udwSnapshot);
      if (!enableDiffOnOpen) {
        return waveWithoutDiffs(convObjectId, convResult, convWavelet, loadedUdw);
      }
View Full Code Here

TOP

Related Classes of com.google.walkaround.proto.WalkaroundWaveletSnapshot

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.