Examples of WaveId


Examples of org.waveprotocol.wave.model.id.WaveId

    } catch (InvalidWaveRefException e) {
      LOG.warning("Cannot decode: " + waveRefStr, e);
      return null;
    }

    WaveId waveId = waveRef.getWaveId();
    WaveletId waveletId =
        waveRef.getWaveletId() != null ? waveRef.getWaveletId() : WaveletId.of(waveId.getDomain(),
            IdConstants.CONVERSATION_ROOT_WAVELET);

    WaveletName waveletName = WaveletName.of(waveId, waveletId);
    return waveletName;
  }
View Full Code Here

Examples of org.waveprotocol.wave.model.id.WaveId

    // Make sure that participant list is not null;
    if (participants == null) {
      participants = Collections.emptySet();
    }

    WaveId waveId;
    WaveletId waveletId;
    try {
      waveId = ApiIdSerializer.instance().deserialiseWaveId(
          String.format(TEMP_WAVE_ID_FORMAT, domain, ID_GENERATOR.nextInt()));
      waveletId = ApiIdSerializer.instance().deserialiseWaveletId(
View Full Code Here

Examples of org.waveprotocol.wave.model.id.WaveId

  @Override
  public void popupLink(BlipView blipUi) {
    ConversationBlip blip = views.getBlip(blipUi);
    // TODO(Yuri Z.) Change to use the conversation model when the Conversation
    // exposes a reference to its ConversationView.
    WaveId waveId = blip.hackGetRaw().getWavelet().getWaveId();
    WaveletId waveletId;
    try {
      waveletId = DualIdSerialiser.MODERN.deserialiseWaveletId(blip.getConversation().getId());
    } catch (InvalidIdException e) {
      Window.alert(messages.invalidWaveletId(blip.getConversation().getId()));
View Full Code Here

Examples of org.waveprotocol.wave.model.id.WaveId

   * @param waveletData the wavelet data to be deserialized.
   * @return an instance of {@link Wavelet}.
   */
  public static Wavelet deserialize(OperationQueue operationQueue, Map<String, Blip> blips,
      Map<String, BlipThread> threads, WaveletData waveletData) {
    WaveId waveId = WaveId.deserialise(waveletData.getWaveId());
    WaveletId waveletId = WaveletId.deserialise(waveletData.getWaveletId());
    String creator = waveletData.getCreator();
    long creationTime = waveletData.getCreationTime();
    long lastModifiedTime = waveletData.getLastModifiedTime();
    String rootBlipId = waveletData.getRootBlipId();
View Full Code Here

Examples of org.waveprotocol.wave.model.id.WaveId

      // second operation, since makeRpc prepends the robot.notify() operation.
      JsonRpcResponse response = this.submit(newWavelet, rpcServerUrl).get(1);
      if (response.isError()) {
        throw new IOException(response.getErrorMessage());
      }
      WaveId waveId = WaveId.deserialise((String) response.getData().get(ParamsProperty.WAVE_ID));
      WaveletId waveletId =
          WaveletId.deserialise((String) response.getData().get(ParamsProperty.WAVELET_ID));
      String rootBlipId = (String) response.getData().get(ParamsProperty.BLIP_ID);

      Map<String, Blip> blips = new HashMap<String, Blip>();
View Full Code Here

Examples of org.waveprotocol.wave.model.id.WaveId

    // Make sure that participant list is not null;
    if (participants == null) {
      participants = Collections.emptySet();
    }

    WaveId waveId = WaveId.deserialise(String.format(TEMP_WAVE_ID_FORMAT, domain,
        ID_GENERATOR.nextInt()));
    WaveletId waveletId = WaveletId.deserialise(String.format(TEMP_WAVELET_ID_FORMAT, domain));

    String rootBlipId = String.format(TEMP_BLIP_ID_FORMAT, waveletId.serialise(),
        ID_GENERATOR.nextInt());
View Full Code Here

Examples of org.waveprotocol.wave.model.id.WaveId

   * @param waveletData the wavelet data to be deserialized.
   * @return an instance of {@link Wavelet}.
   */
  public static Wavelet deserialize(OperationQueue operationQueue, Map<String, Blip> blips,
      WaveletData waveletData) {
    WaveId waveId = WaveId.deserialise(waveletData.getWaveId());
    WaveletId waveletId = WaveletId.deserialise(waveletData.getWaveletId());
    String creator = waveletData.getCreator();
    long creationTime = waveletData.getCreationTime();
    long lastModifiedTime = waveletData.getLastModifiedTime();
    String rootBlipId = waveletData.getRootBlipId();
View Full Code Here

Examples of org.waveprotocol.wave.model.id.WaveId

    if (rpcServerUrl != null && !rpcServerUrl.isEmpty()) {
      JsonRpcResponse response = this.submit(newWavelet, rpcServerUrl).get(0);
      if (response.isError()) {
        throw new IOException(response.getErrorMessage());
      }
      WaveId waveId = WaveId.deserialise((String) response.getData().get(ParamsProperty.WAVE_ID));
      WaveletId waveletId = WaveletId.deserialise((String) response.getData().get(
          ParamsProperty.WAVELET_ID));
      String rootBlipId = (String) response.getData().get(ParamsProperty.BLIP_ID);

      Map<String, Blip> blips = new HashMap<String, Blip>();
View Full Code Here

Examples of org.waveprotocol.wave.model.id.WaveId

    // Make sure that participant list is not null;
    if (participants == null) {
      participants = Collections.emptySet();
    }

    WaveId waveId = WaveId.deserialise(String.format(TEMP_WAVE_ID_FORMAT, domain, nextWaveId++));
    WaveletId waveletId = WaveletId.deserialise(String.format(TEMP_WAVELET_ID_FORMAT, domain));

    String rootBlipId = String.format(TEMP_BLIP_ID_FORMAT, waveletId.serialise(), nextBlipId++);
    Map<String, Blip> blips = new HashMap<String, Blip>();
    Wavelet wavelet = new Wavelet(waveId, waveletId, rootBlipId, participants, blips, opQueue);
View Full Code Here

Examples of org.waveprotocol.wave.model.id.WaveId

      LOG.info("robot address = " + robotAddress);
      LOG.info("project name = " + projectName);

      IssueJdoEntry issueJdoEntry = util.getIssueJdoEntry(waveId);

      Wavelet wavelet = robot.fetchWavelet(new WaveId(domain, waveId), new WaveletId(domain,
          waveletId), projectName, robot.getRpcServerUrl());
      LOG.info("fetched wavelet id: " + wavelet.getWaveId().getId());
     
     
      IssueCommentsFeed issueCommentsFeed = projectHostingHelper.getComments(issueJdoEntry
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.