public class ChildAssociatedNodeFinder extends AbstractNodeFinder
NodeCrawler crawler = nodeCrawlerFactory.getNodeCrawler(); crawler.setNodeFinders(new ChildAssociatedNodeFinder(ContentModel.ASSOC_CONTAINS)); SetcrawledNodes = crawler.crawl(rootNode);
NodeCrawlerFactory
serviceRegistry
Constructor and Description |
---|
ChildAssociatedNodeFinder() |
ChildAssociatedNodeFinder(org.alfresco.service.namespace.QName... associationTypeNames) |
ChildAssociatedNodeFinder(Set<org.alfresco.service.namespace.QName> associationTypeNames) |
ChildAssociatedNodeFinder(Set<org.alfresco.service.namespace.QName> associationTypeNames,
boolean exclude) |
Modifier and Type | Method and Description |
---|---|
Set<org.alfresco.service.cmr.repository.NodeRef> |
findFrom(org.alfresco.service.cmr.repository.NodeRef thisNode) |
void |
init() |
void |
setAssociationTypes(Collection<org.alfresco.service.namespace.QName> associationTypes) |
void |
setAssociationTypes(org.alfresco.service.namespace.QName... associationTypes) |
void |
setExclude(boolean exclude) |
setServiceRegistry
public ChildAssociatedNodeFinder()
public ChildAssociatedNodeFinder(Set<org.alfresco.service.namespace.QName> associationTypeNames)
public ChildAssociatedNodeFinder(org.alfresco.service.namespace.QName... associationTypeNames)
public ChildAssociatedNodeFinder(Set<org.alfresco.service.namespace.QName> associationTypeNames, boolean exclude)
public void setAssociationTypes(org.alfresco.service.namespace.QName... associationTypes)
public void setAssociationTypes(Collection<org.alfresco.service.namespace.QName> associationTypes)
public void setExclude(boolean exclude)
exclude
- the exclude to setpublic Set<org.alfresco.service.cmr.repository.NodeRef> findFrom(org.alfresco.service.cmr.repository.NodeRef thisNode)
thisNode
- The node to use as the base from which to find other nodes.public void init()
init
in class AbstractNodeFinder
Copyright © 2005–2017 Alfresco Software. All rights reserved.