Package org.alfresco.repo.transfer
Class ChildAssociatedNodeFinder
java.lang.Object
org.alfresco.repo.transfer.AbstractNodeFinder
org.alfresco.repo.transfer.ChildAssociatedNodeFinder
- All Implemented Interfaces:
NodeFinder
- Author:
- brian
A node finder that searches for child nodes with the association specified.
For example, could be used to find all children with the cm:contains relationship.
NodeCrawler crawler = nodeCrawlerFactory.getNodeCrawler(); crawler.setNodeFinders(new ChildAssociatedNodeFinder(ContentModel.ASSOC_CONTAINS)); SetcrawledNodes = crawler.crawl(rootNode); - See Also:
-
Field Summary
Fields inherited from class org.alfresco.repo.transfer.AbstractNodeFinder
serviceRegistry -
Constructor Summary
ConstructorsConstructorDescriptionChildAssociatedNodeFinder(Set<QName> associationTypeNames) ChildAssociatedNodeFinder(Set<QName> associationTypeNames, boolean exclude) ChildAssociatedNodeFinder(QName... associationTypeNames) -
Method Summary
Modifier and TypeMethodDescriptionvoidinit()voidsetAssociationTypes(Collection<QName> associationTypes) voidsetAssociationTypes(QName... associationTypes) voidsetExclude(boolean exclude) Methods inherited from class org.alfresco.repo.transfer.AbstractNodeFinder
setServiceRegistry
-
Constructor Details
-
ChildAssociatedNodeFinder
public ChildAssociatedNodeFinder() -
ChildAssociatedNodeFinder
-
ChildAssociatedNodeFinder
-
ChildAssociatedNodeFinder
-
-
Method Details
-
setAssociationTypes
-
setAssociationTypes
-
setExclude
public void setExclude(boolean exclude) - Parameters:
exclude- the exclude to set
-
findFrom
- Parameters:
thisNode- The node to use as the base from which to find other nodes.- Returns:
- The found nodes
-
init
public void init()- Overrides:
initin classAbstractNodeFinder
-