Package org.infoglue.cms.net

Examples of org.infoglue.cms.net.Node


    {
        CommunicationEnvelope requestEnvelope = new CommunicationEnvelope();
        requestEnvelope.setAction("selectRootNode");
       
        List arguments = new ArrayList();
    Node n = new Node();
    n.setId(this.repositoryId);
        arguments.add(n);
        requestEnvelope.setNodes(arguments);
       
        CommunicationEnvelope responseEnvelope = callService(requestEnvelope);
       
        Node rootNode = null;
        int status = Integer.parseInt(responseEnvelope.getStatus());

        //System.out.println("status:" + status);
       
        if(status == 0)
View Full Code Here


    {
        CommunicationEnvelope requestEnvelope = new CommunicationEnvelope();
        requestEnvelope.setAction("selectNode");
       
    List arguments = new ArrayList();
    Node n = new Node();
    n.setId(nodeId);
        arguments.add(n);
        requestEnvelope.setNodes(arguments);
       
        CommunicationEnvelope responseEnvelope = callService(requestEnvelope);
       
        Node node = null;
        int status = Integer.parseInt(responseEnvelope.getStatus());

        System.out.println("status:" + status);
       
        if(status == 0)
View Full Code Here

        List childContents = null;
        CommunicationEnvelope requestEnvelope = new CommunicationEnvelope();
        requestEnvelope.setAction("selectChildNodes");

    List arguments = new ArrayList();
    Node n = new Node();
    n.setId(parentId);
        arguments.add(n);
        requestEnvelope.setNodes(arguments);
               
        CommunicationEnvelope responseEnvelope = callService(requestEnvelope);
       
        Node rootVO = null;
        int status = Integer.parseInt(responseEnvelope.getStatus());

        //System.out.println("status:" + status);
       
        if(status == 0)
View Full Code Here

    List nodes = requestEnvelope.getNodes();
    int i = 0;
    Iterator iterator = nodes.iterator();
    while(iterator.hasNext())
    {
      Node n = (Node)iterator.next();
      hash.put("nodeList." + i + ".id", "" + n.getId());
      hash.put("nodeList." + i + ".name", "" + n.getName());
      hash.put("nodeList." + i + ".isBranch", "" + n.getIsBranch());
      i++;
   
       
    return hash;   
  }
View Full Code Here

    List nodes = new ArrayList();
    int i = 0;
    String id = (String)hash.get("nodeList." + i + ".id");
    while(id != null)
    {
      Node n = new Node();
      n.setId(new Integer(id));
      n.setName((String)hash.get("nodeList." + i + ".name"));
      n.setIsBranch(new Boolean((String)hash.get("nodeList." + i + ".isBranch")));
      nodes.add(n);
      //System.out.println("Node:" + n);
      i++;
      id = (String)hash.get("nodeList." + i + ".id");
   
View Full Code Here

TOP

Related Classes of org.infoglue.cms.net.Node

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.