Package org.alfresco.repo.transfer
Class StandardNodeCrawlerImpl
java.lang.Object
org.alfresco.repo.transfer.StandardNodeCrawlerImpl
- All Implemented Interfaces:
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.- Author:
- brian
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsetNodeFilters(NodeFilter... filters) voidsetNodeFinders(NodeFinder... finders) voidsetServiceRegistry(ServiceRegistry serviceRegistry)
-
Constructor Details
-
StandardNodeCrawlerImpl
public StandardNodeCrawlerImpl() -
StandardNodeCrawlerImpl
- Parameters:
serviceRegistry- ServiceRegistry
-
-
Method Details
-
setServiceRegistry
- Parameters:
serviceRegistry- the serviceRegistry to set
-
crawl
- Specified by:
crawlin interfaceNodeCrawler
-
crawl
- Specified by:
crawlin interfaceNodeCrawler
-
setNodeFinders
- Specified by:
setNodeFindersin interfaceNodeCrawler
-
setNodeFilters
- Specified by:
setNodeFiltersin interfaceNodeCrawler
-