Examples of RootNode


Examples of com.catify.processengine.core.data.model.entities.RootNode

   * @see com.catify.processengine.core.data.services.RootNodeRepositoryService#delete(java.lang.String)
   */
  @Override
  public boolean delete(String uniqueRootNodeId) {

    RootNode rootNode = findByUniqueRootId(uniqueRootNodeId);

    if (rootNode != null) {
      rootNodeRepository.delete(rootNode);
      return true;
    } else {
View Full Code Here

Examples of com.ibm.sbt.playground.assets.RootNode

    return EXTENSIONS;
  }
 
  @Override
  public RootNode createRootNode() {
    return new RootNode();
  }
View Full Code Here

Examples of com.ibm.sbt.playground.assets.RootNode

        unid = request.getParameter(PARAM_SNIPPET);
      }
      String format = getFormat(request);

      String str = null;
      RootNode rootNode = SnippetFactory.getJsSnippets(getServletContext(), request);
      if (unid != null && unid.length() > 0) {
        VFSFile rootFile = SnippetFactory.getJsRootFile(getServletContext());
        JSSnippet snippet = (JSSnippet) rootNode.loadAsset(rootFile, unid);
        if (snippet == null) {
          service400(request, response, "Invalid unid: {0}", unid);
          return;
        }
        if (FORMAT_JSON.equals(format)) {
          str = toJson(request, snippet);
        } else {
          str = toXml(request, snippet);
        }
      } else {
        List<Node> children = rootNode.getAllChildrenFlat();
        if (FORMAT_JSON.equals(format)) {
          str = rootNode.getAsJson();
        } else if (FORMAT_GADGETS_JSON.equals(format)) {
          str = toGadgetsJson(request, children);
        } else {
          str = toXml(request, children);
        }
View Full Code Here

Examples of com.ibm.sbt.playground.assets.RootNode

    return EXTENSIONS;
  }
 
  @Override
  public RootNode createRootNode() {
    return new RootNode();
  }
View Full Code Here

Examples of com.ibm.sbt.playground.assets.RootNode

    return EXTENSIONS;
  }
 
  @Override
  public RootNode createRootNode() {
    return new RootNode();
  }
View Full Code Here

Examples of com.ibm.sbt.playground.assets.RootNode

   * Get the list of API as a JSON file for a Dojo tree.
   * @throws NotesException
   * @throws IOException
   */
  public String getSnippetsAsJson() throws NotesException, IOException {
    RootNode root = readSnippetsNodes();
    JsonTreeRenderer r = new JsonTreeRenderer();
    r.setCategoryUrl(true); // So we can bookmark the categories
    String apisSearch = (String)ExtLibUtil.getViewScope().get("assetSearch");
    if(StringUtil.isNotEmpty(apisSearch)) {
      r.setFlat(true);
View Full Code Here

Examples of com.ibm.sbt.playground.assets.RootNode

     
      //PlaygroundEnvironment env = DataAccessBean.get().findCurrentEnvironment();
      Database db = ExtLibUtil.getCurrentDatabase();
      View v = db.getView("AllSnippetsFlat");
      try {
        RootNode root = new RootNode();
        String apisSearch = (String)ExtLibUtil.getViewScope().get("assetSearch");
        if(StringUtil.isNotEmpty(apisSearch)) {
          v.FTSearch(apisSearch);
          //ViewEntryCollection col = v.getAllEntriesByKey(getAssetForm());
          ViewEntryCollection col = v.getAllEntries();
View Full Code Here

Examples of com.ibm.sbt.playground.assets.RootNode

    return EXTENSIONS;
  }
 
  @Override
  public RootNode createRootNode() {
    return new RootNode();
  }
View Full Code Here

Examples of com.ibm.sbt.playground.assets.RootNode

    return EXTENSIONS;
  }

  @Override
  public RootNode createRootNode() {
    return new RootNode();
  }
View Full Code Here

Examples of com.ibm.sbt.playground.assets.RootNode

   * @param context
   * @param request
   * @return JSSnippets in JSON format.
   */
  public static String getJsSnippetsAsJson(ServletContext context, HttpServletRequest request) {
      RootNode root = getJsSnippets(context, request);
      String json = root.getAsJson();
      String jsonEx = readRemoteJson(context, request);
      if (StringUtil.isNotEmpty(jsonEx)&&jsonEx.contains("children")) {
          jsonEx = jsonEx.substring("[{\"id\":\"_root\",\"name\":\"_root\",\"children\":[".length());
          json = json.substring(0, json.length()-3) + "," + jsonEx;
      }
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.