public class StandardNodeCrawlerImpl extends 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 |
---|---|
Set<org.alfresco.service.cmr.repository.NodeRef> |
crawl(org.alfresco.service.cmr.repository.NodeRef... nodes) |
Set<org.alfresco.service.cmr.repository.NodeRef> |
crawl(Set<org.alfresco.service.cmr.repository.NodeRef> startingNodes) |
void |
setNodeFilters(NodeFilter... filters) |
void |
setNodeFinders(NodeFinder... finders) |
void |
setServiceRegistry(ServiceRegistry serviceRegistry) |
public StandardNodeCrawlerImpl()
public StandardNodeCrawlerImpl(ServiceRegistry serviceRegistry)
serviceRegistry
- ServiceRegistrypublic void setServiceRegistry(ServiceRegistry serviceRegistry)
serviceRegistry
- the serviceRegistry to setpublic Set<org.alfresco.service.cmr.repository.NodeRef> crawl(org.alfresco.service.cmr.repository.NodeRef... nodes)
crawl
in interface NodeCrawler
public Set<org.alfresco.service.cmr.repository.NodeRef> crawl(Set<org.alfresco.service.cmr.repository.NodeRef> startingNodes)
crawl
in interface NodeCrawler
public void setNodeFinders(NodeFinder... finders)
setNodeFinders
in interface NodeCrawler
public void setNodeFilters(NodeFilter... filters)
setNodeFilters
in interface NodeCrawler
Copyright © 2005–2017 Alfresco Software. All rights reserved.