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, wait
getProviderId
protected static final String CONTEXT
public NodeSearchProvider(NodeDao nodeDao)
public boolean canSuggest(GraphService graphService, String namespace)
SearchProvider
canSuggest
in interface SearchProvider
namespace
- The namespace to make suggestions to.public List<SearchSuggestion> getSuggestions(SearchContext searchContext, String namespace, String input)
SearchProvider
getSuggestions
in interface SearchProvider
searchContext
- 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)
SearchProvider
resolve
in interface SearchProvider
graphService
- The GraphService to get access to a graphsearchCriteria
- The SearchCriteria to resolveCopyright © 2021. All rights reserved.