Package org.jibeframework.core.app.conversation

Examples of org.jibeframework.core.app.conversation.Conversation


    return bean;
  }

  public void startModelBuilding(String modelId) {
    logger.debug("Starting model building:" + modelId);
    Conversation conversation = getConversation();
    conversation.setAttribute("__currentModelId", modelId);
    getModelRegistry().put(modelId, new LinkedHashMap<String, Object>());
  }
View Full Code Here


    return model;
  }

  @SuppressWarnings("unchecked")
  private Map<String, Object> getViewRegistry() {
    Conversation conversation = getConversation();
    Map<String, Object> registry = (Map<String, Object>) conversation.getAttribute("__viewRegistry");
    if (registry == null) {
      registry = new HashMap<String, Object>();
      conversation.setAttribute("__viewRegistry", registry);
    }
    return registry;
  }
View Full Code Here

    return registry;
  }

  @SuppressWarnings("unchecked")
  private Map<String, Object> getModelRegistry() {
    Conversation conversation = getConversation();
    Map<String, Object> registry = (Map<String, Object>) conversation.getAttribute("__modelRegistry");
    if (registry == null) {
      registry = new HashMap<String, Object>();
      conversation.setAttribute("__modelRegistry", registry);
    }
    return registry;
  }
View Full Code Here

    }
    return registry;
  }

  public String getCurrentModelId() {
    Conversation conversation = getConversation();
    String modelId = (String) conversation.getAttribute("__currentModelId");
    if (modelId != null) {
      return modelId;
    }
    throw new IllegalStateException("Current model id has not been set in the conversation");
  }
View Full Code Here

TOP

Related Classes of org.jibeframework.core.app.conversation.Conversation

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.