Package org.structr.core.entity

Examples of org.structr.core.entity.LinkedTreeNode


            filteredResults.addAll(DOMNode.getAllChildNodes(node));

          } else if (obj instanceof LinkedTreeNode) {
           
            LinkedTreeNode node = (LinkedTreeNode) obj;

            filteredResults.addAll(node.getAllChildNodes());
           
          }

          for (NodeInterface node : filteredResults) {
            app.delete(node);
View Full Code Here


   * @param file
   * @return path
   */
  public static String getFolderPath(final AbstractFile file) {

    LinkedTreeNode parentFolder = file.getProperty(AbstractFile.parent);

    String folderPath = file.getProperty(AbstractFile.name);

    if (folderPath == null) {
      folderPath = file.getProperty(GraphObject.id);
    }

    while (parentFolder != null) {
      folderPath = parentFolder.getName().concat("/").concat(folderPath);
      parentFolder = parentFolder.getProperty(AbstractFile.parent);
    }

    return "/".concat(folderPath);
  }
View Full Code Here

    entities.add(obj);

    if (rec && obj instanceof LinkedTreeNode) {

      LinkedTreeNode node = (LinkedTreeNode) obj;

      for (Object child : node.treeGetChildren()) {

        collectEntities(entities, (GraphObject)child, properties, rec);
      }
    }
  }
View Full Code Here

TOP

Related Classes of org.structr.core.entity.LinkedTreeNode

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.