Package org.exoplatform.services.jcr.impl.dataflow

Examples of org.exoplatform.services.jcr.impl.dataflow.NodeDataOrderComparator


            }
            if (!isNoRecurse() && (currentLevel > 0))
            {
               List<NodeData> nodes = new ArrayList<NodeData>(dataManager.getChildNodesData(node));
               // Sorting nodes
               Collections.sort(nodes, new NodeDataOrderComparator());
               for (NodeData data : nodes)
               {
                  data.accept(this);
               }
            }
View Full Code Here


            }
            if (!isNoRecurse() && (currentLevel > 0))
            {
               List<NodeData> nodes = dataManager.getChildNodesData(node);
               // Sorting nodes
               Collections.sort(nodes, new NodeDataOrderComparator());
               for (NodeData data : nodes)
               {
                  data.accept(this);
               }
            }
View Full Code Here

            }
            if (!isNoRecurse() && (currentLevel > 0))
            {
               List<NodeData> nodes = dataManager.getChildNodesData(node);
               // Sorting nodes
               Collections.sort(nodes, new NodeDataOrderComparator());
               for (NodeData data : nodes)
               {
                  data.accept(this);
               }
            }
View Full Code Here

   }

    private void checkOrderEquals(NodeImpl src, NodeImpl dest) throws RepositoryException {
        List<NodeData> srcChildren = new ArrayList<NodeData>(dataManager.getChildNodesData((NodeData) src.getData()));
        List<NodeData> destChildren = new ArrayList<NodeData>(dataManager.getChildNodesData((NodeData) dest.getData()));
        Collections.sort(srcChildren, new NodeDataOrderComparator());
        Collections.sort(destChildren, new NodeDataOrderComparator());
        for (int i = 0; i < srcChildren.size(); i++) {
             assertTrue(srcChildren.get(i).getQPath().getName().getAsString().equals(srcChildren.get(i).getQPath().getName().getAsString()));
        }
    }
View Full Code Here

            }
            if (!isNoRecurse() && (currentLevel > 0))
            {
               List<NodeData> nodes = new ArrayList<NodeData>(dataManager.getChildNodesData(node));
               // Sorting nodes
               Collections.sort(nodes, new NodeDataOrderComparator());
               for (NodeData data : nodes)
               {
                  data.accept(this);
               }
            }
View Full Code Here

   private void checkOrderEquals(NodeImpl src, NodeImpl dest) throws RepositoryException
   {
      List<NodeData> srcChildren = new ArrayList<NodeData>(dataManager.getChildNodesData((NodeData)src.getData()));
      List<NodeData> destChildren = new ArrayList<NodeData>(dataManager.getChildNodesData((NodeData)dest.getData()));
      Collections.sort(srcChildren, new NodeDataOrderComparator());
      Collections.sort(destChildren, new NodeDataOrderComparator());
      for (int i = 0; i < srcChildren.size(); i++)
      {
         assertTrue(srcChildren.get(i).getQPath().getName().getAsString().equals(srcChildren.get(i).getQPath().getName().getAsString()));
      }
   }
View Full Code Here

            }
            if (!isNoRecurse() && (currentLevel > 0))
            {
               List<NodeData> nodes = new ArrayList<NodeData>(dataManager.getChildNodesData(node));
               // Sorting nodes
               Collections.sort(nodes, new NodeDataOrderComparator());
               for (NodeData data : nodes)
               {
                  data.accept(this);
               }
            }
View Full Code Here

TOP

Related Classes of org.exoplatform.services.jcr.impl.dataflow.NodeDataOrderComparator

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.