Package com.google.walkaround.wave.shared

Examples of com.google.walkaround.wave.shared.WaveSerializer$DocDiff


    this.udwDirectory = udwDirectory;
    this.searchService = searchService;
    this.accountStore = users;
    this.random = random;
    this.convMetadataStore = convMetadataStore;
    this.serializer = new WaveSerializer(
        new ServerMessageSerializer(), new DocumentFactory<ObservablePluggableMutableDocument>() {
          @Override
          public ObservablePluggableMutableDocument create(
              WaveletId waveletId, String docId, DocInitialization content) {
            return new ObservablePluggableMutableDocument(
View Full Code Here


  public SubmitDeltaService(Rpc rpc, WaveletMap wavelets, SlobId objectId) {
    this.rpc = rpc;
    this.wavelets = wavelets;
    this.objectId = objectId;
    this.serializer = new WaveSerializer(new ClientMessageSerializer());
  }
View Full Code Here

  private final WaveSerializer serializer;

  @Inject
  public WaveObjectStoreModel(MessageSerializer messageSerializer) {
    this.serializer = new WaveSerializer(messageSerializer);
  }
View Full Code Here

    this.waveletCreator = waveletCreator;
    this.convStore = convStore;
    this.udwStore = udwStore;
    this.enableUdw = enableUdw;
    this.enableDiffOnOpen = enableDiffOnOpen;
    serializer = new WaveSerializer(new ServerMessageSerializer(),
        new DocumentFactory<ObservablePluggableMutableDocument>() {
      @Override public ObservablePluggableMutableDocument create(
          WaveletId waveletId, String docId, DocInitialization content) {
        return new ObservablePluggableMutableDocument(
            DocumentSchema.NO_SCHEMA_CONSTRAINTS, content);
View Full Code Here

  }

  private WaveletEntry parseConvWaveletData(
      @Nullable ConnectResponse connectResponse, WaveletDiffSnapshot diffSnapshot,
      DocumentFactory<?> docFactory, StringMap<DocOp> diffMap) {
    WaveSerializer waveSerializer = new WaveSerializer(new ClientMessageSerializer(), docFactory);
    WaveletDataImpl wavelet;
    try {
      StringMap<DocOp> diffOps = waveSerializer.deserializeDocumentsDiffs(diffSnapshot);
      diffMap.putAll(diffOps);
      wavelet = waveSerializer.createWaveletData(
          IdHack.convWaveletNameFromConvObjectId(convObjectId), diffSnapshot);
    } catch (MessageException e) {
      throw new RuntimeException(e);
    }
    return makeEntry(convObjectId, connectResponse, wavelet);
View Full Code Here

  }

  private WaveletEntry parseUdwData(
      @Nullable ConnectResponse connectResponse, WalkaroundWaveletSnapshot snapshot,
      DocumentFactory<?> docFactory) {
    WaveSerializer serializer = new WaveSerializer(new ClientMessageSerializer(), docFactory);
    WaveletDataImpl wavelet;
    try {
      wavelet = serializer.createWaveletData(
          IdHack.udwWaveletNameFromConvObjectIdAndUdwObjectId(convObjectId, udwObjectId),
          snapshot);
    } catch (MessageException e) {
      throw new RuntimeException(e);
    }
View Full Code Here

TOP

Related Classes of com.google.walkaround.wave.shared.WaveSerializer$DocDiff

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.