public class NodeSearchProvider extends Object implements SearchProvider
| Constructor and Description |
|---|
NodeSearchProvider(NodeDao nodeDao) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canSuggest(GraphService graphService,
String namespace)
Defines if the search can provide suggestions to the given namespace
|
List<SearchSuggestion> |
getSuggestions(SearchContext searchContext,
String namespace,
String input)
Provide suggestions for the given namespace, given the input.
|
List<GenericVertex> |
resolve(GraphService graphService,
SearchCriteria searchCriteria)
Resolves the given SearchCriteria to a list of vertices.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetProviderIdprotected static final String CONTEXT
public NodeSearchProvider(NodeDao nodeDao)
public boolean canSuggest(GraphService graphService, String namespace)
SearchProvidercanSuggest in interface SearchProvidernamespace - The namespace to make suggestions to.public List<SearchSuggestion> getSuggestions(SearchContext searchContext, String namespace, String input)
SearchProvidergetSuggestions in interface SearchProvidersearchContext - The SearchContext to allow access to graphs and other configurationnamespace - The namespace of the current selected provider to make mappingsinput - The current input, may be a snippet of the final input for type ahead support. It is never null or empty.public List<GenericVertex> resolve(GraphService graphService, SearchCriteria searchCriteria)
SearchProviderresolve in interface SearchProvidergraphService - The GraphService to get access to a graphsearchCriteria - The SearchCriteria to resolveCopyright © 2022. All rights reserved.