Package org.infoglue.cms.net

Examples of org.infoglue.cms.net.Node


      logger.info("repositoryId:" + repositoryId);
           
            ContentVO contentVO = ContentControllerProxy.getController().getRootContentVO(repositoryId, this.request.getRemoteUser());
           
            logger.info("contentVO:" + contentVO.getContentId() + " " + contentVO.getName());
            Node node = new Node();
            node.setId(contentVO.getContentId());
            node.setName(contentVO.getName());
            node.setIsBranch(contentVO.getIsBranch());
           
            List nodes = new ArrayList();
            nodes.add(node);
            responseEnvelope.setNodes(nodes);
        }
View Full Code Here


      List arguments = (List)envelope.getNodes();
          Integer contentId = ((Node)arguments.get(0)).getId();
      logger.info("contentId:" + contentId);
            ContentVO contentVO = ContentController.getContentController().getContentVOWithId(contentId);
            logger.info("contentVO:" + contentVO.getContentId() + " " + contentVO.getName());
            Node node = new Node();
            node.setId(contentVO.getContentId());
            node.setName(contentVO.getName());
            node.setIsBranch(contentVO.getIsBranch());
           
            List nodes = new ArrayList();
            nodes.add(node);
            responseEnvelope.setNodes(nodes);
        }
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);
      logger.info("Node:" + n);
      i++;
      id = (String)hash.get("nodeList." + i + ".id");
   
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

          Integer repositoryId = ((Node)arguments.get(0)).getId();
      logger.info("repositoryId:" + repositoryId);
            ViewSiteNodeTreeUCC viewSiteNodeTreeUCC = ViewSiteNodeTreeUCCFactory.newViewSiteNodeTreeUCC();
            SiteNodeVO siteNodeVO = viewSiteNodeTreeUCC.getRootSiteNode(repositoryId, getInfoGluePrincipal());
            logger.info("siteNodeVO:" + siteNodeVO.getSiteNodeId() + " " + siteNodeVO.getName());
            Node node = new Node();
            node.setId(siteNodeVO.getSiteNodeId());
            node.setName(siteNodeVO.getName());
            node.setIsBranch(siteNodeVO.getIsBranch());
           
            List nodes = new ArrayList();
            nodes.add(node);
            responseEnvelope.setNodes(nodes);
        }
View Full Code Here

          Integer siteNodeId = ((Node)arguments.get(0)).getId();
      logger.info("siteNodeId:" + siteNodeId);
            ViewSiteNodeTreeUCC viewSiteNodeTreeUCC = ViewSiteNodeTreeUCCFactory.newViewSiteNodeTreeUCC();
            SiteNodeVO siteNodeVO = viewSiteNodeTreeUCC.getSiteNode(siteNodeId);
            logger.info("siteNodeVO:" + siteNodeVO.getSiteNodeId() + " " + siteNodeVO.getName());
            Node node = new Node();
            node.setId(siteNodeVO.getSiteNodeId());
            node.setName(siteNodeVO.getName());
            node.setIsBranch(siteNodeVO.getIsBranch());
           
            List nodes = new ArrayList();
            nodes.add(node);
            responseEnvelope.setNodes(nodes);
        }
View Full Code Here

      Iterator childIterator = childSiteNodes.iterator();
     
      while(childIterator.hasNext())
      {
        SiteNodeVO siteNodeVO = (SiteNodeVO)childIterator.next();
        Node node = new Node();
              node.setId(siteNodeVO.getSiteNodeId());
              node.setName(siteNodeVO.getName());
              node.setIsBranch(siteNodeVO.getIsBranch());
              nodes.add(node);
      }       
      
            responseEnvelope.setNodes(nodes);
        }
View Full Code Here

  }
   
   
    public CMSNode getRootNode() throws Exception
    {
        Node rootNode = communicator.getRootNode();
        CMSNode rootCMSNode = generateVisualTreeModel(rootNode);
       
      updateHash(rootCMSNode);
     
        //This should be there later when I know how to fire of events
View Full Code Here

        return rootCMSNode;
    }
   
    public CMSNode getNode(Integer nodeId)
    {
        Node node = communicator.getNode(nodeId);
        CMSNode cmsNode = generateVisualTreeModel(node);
       
        updateHash(cmsNode);
       
        return cmsNode;
View Full Code Here

      if(nodeList != null)
      {
        Iterator iterator = nodeList.iterator();
        while(iterator.hasNext())
        {
          Node node = (Node)iterator.next();
          if(this.hideLeafs == null || this.hideLeafs.equals("false") || node.getIsBranch().booleanValue() == true)
            {
              CMSNode cmsNode = new CMSNode(this, node.getIsBranch().booleanValue());
              cmsNode.setId(node.getId());
              cmsNode.setName(node.getName());
              children.add(cmsNode);
 
              updateHash(cmsNode);
            }
        }
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.