public class StandardNodeCrawlerImpl extends java.lang.Object implements NodeCrawler
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.| Constructor and Description |
|---|
StandardNodeCrawlerImpl() |
StandardNodeCrawlerImpl(ServiceRegistry serviceRegistry) |
| Modifier and Type | Method and Description |
|---|---|
java.util.Set |
crawl(org.alfresco.service.cmr.repository.NodeRef[] nodes) |
java.util.Set |
crawl(java.util.Set startingNodes) |
void |
setNodeFilters(NodeFilter[] filters) |
void |
setNodeFinders(NodeFinder[] finders) |
void |
setServiceRegistry(ServiceRegistry serviceRegistry) |
public StandardNodeCrawlerImpl()
public StandardNodeCrawlerImpl(ServiceRegistry serviceRegistry)
serviceRegistry - public void setServiceRegistry(ServiceRegistry serviceRegistry)
nodeService - the nodeService to setpublic java.util.Set crawl(org.alfresco.service.cmr.repository.NodeRef[] nodes)
crawl in interface NodeCrawlerpublic java.util.Set crawl(java.util.Set startingNodes)
crawl in interface NodeCrawlerpublic void setNodeFinders(NodeFinder[] finders)
setNodeFinders in interface NodeCrawlerpublic void setNodeFilters(NodeFilter[] filters)
setNodeFilters in interface NodeCrawlerCopyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.