public interface SearchProvider
| Modifier and Type | Method and Description | 
|---|---|
void | 
addVertexHopCriteria(SearchResult searchResult,
                    GraphContainer container)
This method is called when the selection is made from the list of  
 | 
boolean | 
contributesTo(String namespace)
This is the topology provider namespace to which this search provider contributes. 
 | 
String | 
getSearchProviderNamespace()
This is a namespace for search providers... 
 | 
Set<VertexRef> | 
getVertexRefsBy(SearchResult searchResult,
               GraphContainer graphContainer)
This method is called when the topology UI needs to know what  
 | 
void | 
onCenterSearchResult(SearchResult searchResult,
                    GraphContainer graphContainer)
This method called when the user clicks the focus icon on the  
 | 
void | 
onDefocusSearchResult(SearchResult searchResult,
                     OperationContext operationContext)
This method is called from the UI when the user wants to remove a vertex that currently in the focus list. 
 | 
void | 
onFocusSearchResult(SearchResult searchResult,
                   OperationContext operationContext)
This method is called from the UI when the user wants to add a vertex that is in the current context
 to the focus list. 
 | 
void | 
onToggleCollapse(SearchResult searchResult,
                GraphContainer graphContainer)
This method is called if the  
 | 
List<SearchResult> | 
query(SearchQuery searchQuery,
     GraphContainer graphContainer)
This API is for getting a list of  
 | 
void | 
removeVertexHopCriteria(SearchResult searchResult,
                       GraphContainer container)
When the user requests that the current SearchResult be removed from focus, the search provider should remove the  
 | 
boolean | 
supportsPrefix(String searchPrefix)
This method is called by topology app the user is searching to setup prefixes that will only match from 
 a  
 | 
String getSearchProviderNamespace()
boolean contributesTo(String namespace)
namespace - List<SearchResult> query(SearchQuery searchQuery, GraphContainer graphContainer)
searchQuery - This is an API for Vaadin UI code for implementing various search queries types.graphContainer - void onFocusSearchResult(SearchResult searchResult, OperationContext operationContext)
searchResult - operationContext - void onDefocusSearchResult(SearchResult searchResult, OperationContext operationContext)
searchResult - operationContext - boolean supportsPrefix(String searchPrefix)
searchPrefix - Set<VertexRef> getVertexRefsBy(SearchResult searchResult, GraphContainer graphContainer)
searchResult - graphContainer - void addVertexHopCriteria(SearchResult searchResult, GraphContainer container)
searchResult - container - void removeVertexHopCriteria(SearchResult searchResult, GraphContainer container)
searchResult - container - void onCenterSearchResult(SearchResult searchResult, GraphContainer graphContainer)
searchResult - graphContainer - void onToggleCollapse(SearchResult searchResult, GraphContainer graphContainer)
searchResult - graphContainer - Copyright © 2020. All rights reserved.