Package org.opennms.netmgt.graph.search
Class LabelSearchProvider
- java.lang.Object
- 
- org.opennms.netmgt.graph.search.LabelSearchProvider
 
- 
- All Implemented Interfaces:
- SearchProvider
 
 public class LabelSearchProvider extends Object implements SearchProvider 
- 
- 
Constructor SummaryConstructors Constructor Description LabelSearchProvider()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanSuggest(GraphService graphService, String namespace)Defines if the search can provide suggestions to the given namespaceList<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.- 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface org.opennms.netmgt.graph.api.search.SearchProvidergetProviderId
 
- 
 
- 
- 
- 
Method Detail- 
canSuggestpublic boolean canSuggest(GraphService graphService, String namespace) Description copied from interface:SearchProviderDefines if the search can provide suggestions to the given namespace- Specified by:
- canSuggestin interface- SearchProvider
- namespace- The namespace to make suggestions to.
- Returns:
- True if suggestions can be made, false otherwise
 
 - 
getSuggestionspublic List<SearchSuggestion> getSuggestions(SearchContext searchContext, String namespace, String input) Description copied from interface:SearchProviderProvide suggestions for the given namespace, given the input. Be aware that the input may only contain snippets of the actual input, e.g. `Rout` instead of `Routers` (type ahead).- Specified by:
- getSuggestionsin interface- SearchProvider
- Parameters:
- searchContext- The SearchContext to allow access to graphs and other configuration
- namespace- The namespace of the current selected provider to make mappings
- input- The current input, may be a snippet of the final input for type ahead support. It is never null or empty.
- Returns:
- A list of suggestions the SearchProvider can use later to resolve to actual Vertices. Be aware, that this should only return actual results, e.g. "Routers" when input was "Rout".
 
 - 
resolvepublic List<GenericVertex> resolve(GraphService graphService, SearchCriteria searchCriteria) Description copied from interface:SearchProviderResolves the given SearchCriteria to a list of vertices.- Specified by:
- resolvein interface- SearchProvider
- Parameters:
- graphService- The GraphService to get access to a graph
- searchCriteria- The SearchCriteria to resolve
- Returns:
- A list of vertices matching the SearchCriteria.
 
 
- 
 
-