Class ChildAssociatedNodeFinder

java.lang.Object
org.alfresco.repo.transfer.AbstractNodeFinder
org.alfresco.repo.transfer.ChildAssociatedNodeFinder
All Implemented Interfaces:
NodeFinder

public class ChildAssociatedNodeFinder extends AbstractNodeFinder
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));
      Set crawledNodes = crawler.crawl(rootNode);
 
See Also:
  • Constructor Details

    • ChildAssociatedNodeFinder

      public ChildAssociatedNodeFinder()
    • ChildAssociatedNodeFinder

      public ChildAssociatedNodeFinder(Set<QName> associationTypeNames)
    • ChildAssociatedNodeFinder

      public ChildAssociatedNodeFinder(QName... associationTypeNames)
    • ChildAssociatedNodeFinder

      public ChildAssociatedNodeFinder(Set<QName> associationTypeNames, boolean exclude)
  • Method Details

    • setAssociationTypes

      public void setAssociationTypes(QName... associationTypes)
    • setAssociationTypes

      public void setAssociationTypes(Collection<QName> associationTypes)
    • setExclude

      public void setExclude(boolean exclude)
      Parameters:
      exclude - the exclude to set
    • findFrom

      public Set<NodeRef> findFrom(NodeRef thisNode)
      Parameters:
      thisNode - The node to use as the base from which to find other nodes.
      Returns:
      The found nodes
    • init

      public void init()
      Overrides:
      init in class AbstractNodeFinder