public class NodeHierarchyWalker extends Object
Modifier and Type | Class and Description |
---|---|
class |
NodeHierarchyWalker.VisitedNode
Carries data about a node in the hierarchy
|
Constructor and Description |
---|
NodeHierarchyWalker(NodeDAO nodeDAO) |
Modifier and Type | Method and Description |
---|---|
NodeHierarchyWalker.VisitedNode |
getNode(Long id) |
NodeHierarchyWalker.VisitedNode |
getNode(org.alfresco.service.cmr.repository.NodeRef nodeRef) |
List<NodeHierarchyWalker.VisitedNode> |
getNodes(boolean leafFirst)
Return the IDs of the nodes visited in desired order
|
void |
walkHierarchy(org.alfresco.util.Pair<Long,org.alfresco.service.cmr.repository.NodeRef> nodePair,
org.alfresco.util.Pair<Long,org.alfresco.service.cmr.repository.ChildAssociationRef> parentAssocPair)
Walk a hierachy
|
public NodeHierarchyWalker(NodeDAO nodeDAO)
nodeDAO
- the low-leve query servicepublic NodeHierarchyWalker.VisitedNode getNode(Long id)
public NodeHierarchyWalker.VisitedNode getNode(org.alfresco.service.cmr.repository.NodeRef nodeRef)
public List<NodeHierarchyWalker.VisitedNode> getNodes(boolean leafFirst)
leafFirst
- true to list the leaf nodes firstCopyright © 2005–2017 Alfresco Software. All rights reserved.