org.alfresco.repo.transfer
Class StandardNodeCrawlerImpl
java.lang.Object
org.alfresco.repo.transfer.StandardNodeCrawlerImpl
- All Implemented Interfaces:
- NodeCrawler
public class StandardNodeCrawlerImpl
- extends java.lang.Object
- implements NodeCrawler
This class can be used to build a set of node references from a given starting point. The caller can provide a list
of NodeFinder
objects and a list of NodeFilter
objects. Starting with the nodes supplied by the
caller, the crawler uses the NodeFinder objects to find other nodes. Each node that is found is then passed to the
NodeFilter objects to determine whether it should be included or ignored. Any included nodes are then fed back into
the NodeFinder objects to continue the crawl. This class was originally written to assist users of the
TransferService
in combination with the ChildAssociatedNodeFinder
and the ContentClassFilter
.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StandardNodeCrawlerImpl
public StandardNodeCrawlerImpl()
StandardNodeCrawlerImpl
public StandardNodeCrawlerImpl(ServiceRegistry serviceRegistry)
- Parameters:
serviceRegistry
-
setServiceRegistry
public void setServiceRegistry(ServiceRegistry serviceRegistry)
- Parameters:
nodeService
- the nodeService to set
crawl
public java.util.Set crawl(org.alfresco.service.cmr.repository.NodeRef[] nodes)
- Specified by:
crawl
in interface NodeCrawler
crawl
public java.util.Set crawl(java.util.Set startingNodes)
- Specified by:
crawl
in interface NodeCrawler
setNodeFinders
public void setNodeFinders(NodeFinder[] finders)
- Specified by:
setNodeFinders
in interface NodeCrawler
setNodeFilters
public void setNodeFilters(NodeFilter[] filters)
- Specified by:
setNodeFilters
in interface NodeCrawler
Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.