Package com.google.walkaround.proto

Examples of com.google.walkaround.proto.WaveletDiffSnapshot


  /**
   * Creates wavelet snapshot with diff
   */
  public WaveletDiffSnapshot createWaveletDiffMessage(WaveletDataImpl intermediateWavelet,
      WaveletDataImpl currentWavelet, StringMap<Long> lastReadVersions, List<String> mutations) {
    WaveletDiffSnapshot waveletDiff = MessageFactoryHelper.createWaveletDiffSnapshot();
    waveletDiff.setWaveletId(
        ModernIdSerialiser.INSTANCE.serialiseWaveletId(currentWavelet.getWaveletId()));
    waveletDiff.addAllParticipant(listOfParticipantAddresses(currentWavelet.getParticipants()));

    waveletDiff.addAllDocument(getDocumentDiffs(
      intermediateWavelet, mutations, lastReadVersions, currentWavelet));
    waveletDiff.setVersion(currentWavelet.getVersion());
    waveletDiff.setLastModifiedTime(currentWavelet.getLastModifiedTime());
    waveletDiff.setCreator(currentWavelet.getCreator().getAddress());
    waveletDiff.setCreationTime(currentWavelet.getCreationTime());

    return waveletDiff;
  }
View Full Code Here


        return waveWithoutDiffs(convObjectId, convResult, convWavelet, loadedUdw);
      }

      List<String> mutations = mutations(history.getData());

      WaveletDiffSnapshot convSnapshot = serializer.createWaveletDiffMessage(
          intermediateWavelet, convWavelet, lastReadVersions, mutations);
      return new LoadedWave(convObjectId, convResult, convSnapshot, loadedUdw);
    }
  }
View Full Code Here

    return waveWithoutDiffs(convObjectId, convResult, convWavelet, null);
  }

  private LoadedWave waveWithoutDiffs(SlobId convObjectId,
      ConnectResult convResult, WaveletDataImpl convWavelet, @Nullable LoadedUdw udw) {
    WaveletDiffSnapshot convSnapshot = serializer.createWaveletDiffMessage(convWavelet, convWavelet,
        CollectionUtils.<Long>createStringMap(), Collections.<String>emptyList());
    return new LoadedWave(convObjectId, convResult, convSnapshot, udw);
  }
View Full Code Here

    @Nullable final UdwLoadData udwData;
    final int randomSeed;
    final String userIdString;
    final boolean haveOAuthToken;
    final String convObjectIdString;
    final WaveletDiffSnapshot convSnapshot;
    @Nullable final ConnectResponse convConnectResponse;
    if (clientVars.hasStaticClientVars()) {
      isLive = false;
      StaticClientVars vars = clientVars.getStaticClientVars();
      randomSeed = vars.getRandomSeed();
View Full Code Here

TOP

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

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.