Package org.waveprotocol.wave.model.id

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


    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(
          String.format(TEMP_WAVELET_ID_FORMAT, domain));
View Full Code Here


  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()));
      return;
View Full Code Here

   * @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

      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>();
      Map<String, BlipThread> threads = new HashMap<String, BlipThread>();
View Full Code Here

      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());
    Map<String, Blip> blips = new HashMap<String, Blip>();
    Map<String, String> roles = new HashMap<String, String>();
    Map<String, BlipThread> threads = new HashMap<String, BlipThread>();
View Full Code Here

   * @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();
    String title = waveletData.getTitle();
View Full Code Here

      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>();
      newWavelet = new Wavelet(waveId, waveletId, rootBlipId, participants, blips, opQueue);
View Full Code Here

    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);

    Blip rootBlip = new Blip(rootBlipId, "", null, wavelet);
    blips.put(rootBlipId, rootBlip);
View Full Code Here

      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

            autoImportSettings));
    } else if ("importwavelet".equals(action)) {
      SourceInstance instance =
          sourceInstanceFactory.parseUnchecked(requireParameter(req, "instance"));
      WaveId waveId = WaveId.deserialise(requireParameter(req, "waveid"));
      WaveletId waveletId = WaveletId.deserialise(requireParameter(req, "waveletid"));
      ImportWaveletTask task = new ImportWaveletTaskGsonImpl();
      task.setInstance(instance.serialize());
      task.setWaveId(waveId.serialise());
      task.setWaveletId(waveletId.serialise());
      ImportSettings settings = new ImportSettingsGsonImpl();
      if ("private".equals(requireParameter(req, "sharingmode"))) {
        settings.setSharingMode(ImportSettings.ImportSharingMode.PRIVATE);
      } else if ("shared".equals(requireParameter(req, "sharingmode"))) {
        settings.setSharingMode(ImportSettings.ImportSharingMode.SHARED);
View Full Code Here

TOP

Related Classes of org.waveprotocol.wave.model.id.WaveletId

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.