Package org.opennms.netmgt.graph.search
Class DefaultGraphSearchService
- java.lang.Object
-
- org.opennms.netmgt.graph.search.DefaultGraphSearchService
-
- All Implemented Interfaces:
GraphSearchService
public class DefaultGraphSearchService extends Object implements GraphSearchService
-
-
Constructor Summary
Constructors Constructor Description DefaultGraphSearchService(GraphService graphService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<SearchSuggestion>getSuggestions(String namespace, String input)Returns a list of suggestions for the given namespace and input, where input may only be a snippet of the whole data, e.g.voidonBind(SearchProvider graphSearchProvider, Map<String,String> props)voidonUnbind(SearchProvider graphSearchProvider, Map<String,String> props)List<GenericVertex>search(SearchCriteria searchCriteria)
-
-
-
Constructor Detail
-
DefaultGraphSearchService
public DefaultGraphSearchService(GraphService graphService)
-
-
Method Detail
-
getSuggestions
public List<SearchSuggestion> getSuggestions(String namespace, String input)
Description copied from interface:GraphSearchServiceReturns a list of suggestions for the given namespace and input, where input may only be a snippet of the whole data, e.g. for type ahead support.- Specified by:
getSuggestionsin interfaceGraphSearchService- Parameters:
namespace- The namespace to search ininput- The "thing" to search- Returns:
- A list of results, the user may select from
-
search
public List<GenericVertex> search(SearchCriteria searchCriteria)
- Specified by:
searchin interfaceGraphSearchService
-
onBind
public void onBind(SearchProvider graphSearchProvider, Map<String,String> props)
-
onUnbind
public void onUnbind(SearchProvider graphSearchProvider, Map<String,String> props)
-
-