Examples of Conversation


Examples of org.waveprotocol.wave.model.conversation.Conversation

    String[] parts = split(longId);

    if (parts.length != 2) {
      throw new IllegalArgumentException("Not a participant model id: " + modelId);
    } else {
      Conversation c = model.getConversation(parts[0]);
      ParticipantId p = new ParticipantId(parts[1]);
      return Pair.of(c, p);
    }
  }
View Full Code Here

Examples of org.waveprotocol.wave.model.conversation.Conversation

  /**
   * @return the most recently modified blip.
   */
  public BlipView selectMostRecentlyModified() {
    Conversation conversation  = wave.getRoot();
    if (conversation == null) {
      return null;
    } else {
      ConversationBlip blip = wave.getRoot().getRootThread().getFirstBlip();
      BlipView rootBlipUi = views.getBlipView(blip);
View Full Code Here

Examples of org.waveprotocol.wave.model.conversation.Conversation

  /**
   * @return the root blip of the currently displayed wave.
   */
  public BlipView getOrFindRootBlip() {
    if (rootBlip == null) {
      Conversation conversation  = wave.getRoot();
      if (conversation == null) {
        return null;
      } else {
        ConversationBlip blip = wave.getRoot().getRootThread().getFirstBlip();
        BlipView rootBlipUi = views.getBlipView(blip);
View Full Code Here

Examples of org.waveprotocol.wave.model.conversation.Conversation

   */
  public BlipView selectBlipByWaveRef(WaveRef waveRef) {
    // Determine if waveRef has a documentId in it - if so, the referenced blip
    // should receive the focus on wave load.
    // First find conversation
    Conversation conversation;
    String documentId = null;
    if (waveRef != null && waveRef.hasWaveletId()) {
      String id = ModernIdSerialiser.INSTANCE.serialiseWaveletId(waveRef.getWaveletId());
      documentId = waveRef.getDocumentId();
      conversation = wave.getConversation(id);
View Full Code Here

Examples of webframe.Conversation

    if ((lastConvSlot != null) &&
      lastConvSlot.isInput() &&
      lastConvSlot.getType().equals("number") &&
      !topInputs.containsKey("lastConversation")) {
     
      Conversation c = user.getLastConversation(id);
      topTask.setSlotValue("lastConversation", c==null ? null : c.getStart());
    }
   
    if (Bool.isFalse(topTask.isApplicable()))
      throw new IllegalArgumentException("task not applicable: " + topTask);
   
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.