Package org.waveprotocol.wave.model.supplement

Examples of org.waveprotocol.wave.model.supplement.WaveletBasedSupplement


  /**
   * Creates a mapping of documents to their last read versions in wavelet
   */
  private StringMap<Long> getLastReadVersions(WaveletDataImpl udw, WaveletDataImpl conv) {
    StringMap<Long> lastReadVersions = CollectionUtils.createStringMap();
    WaveletBasedSupplement supplement = WaveletBasedSupplement.create(
        OpBasedWavelet.createReadOnly(udw));

    for (String documentId : conv.getDocumentIds()) {
      long lastReadBlipVersion = supplement.getLastReadBlipVersion(conv.getWaveletId(), documentId);
      if (lastReadBlipVersion == PrimitiveSupplement.NO_VERSION) {
        continue;
      }
      Assert.check(lastReadBlipVersion >= 0);
      lastReadVersions.put(documentId, lastReadBlipVersion);
View Full Code Here

TOP

Related Classes of org.waveprotocol.wave.model.supplement.WaveletBasedSupplement

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.