public class IpLikeSearchProvider extends AbstractSearchProvider implements HistoryAwareSearchProvider
| Constructor and Description |
|---|
IpLikeSearchProvider(IpInterfaceProvider ipInterfaceProvider) |
| Modifier and Type | Method and Description |
|---|---|
void |
addVertexHopCriteria(SearchResult searchResult,
GraphContainer container)
Creates a criteria that provides
|
Criteria |
buildCriteriaFromQuery(SearchResult input) |
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 container)
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 method processes the
|
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
|
supportsPrefixpublic IpLikeSearchProvider(IpInterfaceProvider ipInterfaceProvider)
public String getSearchProviderNamespace()
SearchProvidergetSearchProviderNamespace in interface SearchProviderpublic boolean contributesTo(String namespace)
SearchProvidercontributesTo in interface SearchProviderpublic List<SearchResult> query(SearchQuery searchQuery, GraphContainer graphContainer)
query in interface SearchProvidersearchQuery - This is an API for Vaadin UI code for implementing various search queries types.public boolean supportsPrefix(String searchPrefix)
SearchProvidersupportsPrefix in interface SearchProviderpublic Set<VertexRef> getVertexRefsBy(SearchResult searchResult, GraphContainer container)
SearchProvidergetVertexRefsBy in interface SearchProviderpublic void onCenterSearchResult(SearchResult searchResult, GraphContainer graphContainer)
SearchProvideronCenterSearchResult in interface SearchProvideronCenterSearchResult in class AbstractSearchProviderpublic void onFocusSearchResult(SearchResult searchResult, OperationContext operationContext)
SearchProvideronFocusSearchResult in interface SearchProvideronFocusSearchResult in class AbstractSearchProviderpublic void onDefocusSearchResult(SearchResult searchResult, OperationContext operationContext)
SearchProvideronDefocusSearchResult in interface SearchProvideronDefocusSearchResult in class AbstractSearchProviderpublic void addVertexHopCriteria(SearchResult searchResult, GraphContainer container)
addVertexHopCriteria in interface SearchProviderpublic void removeVertexHopCriteria(SearchResult searchResult, GraphContainer container)
SearchProviderremoveVertexHopCriteria in interface SearchProviderpublic void onToggleCollapse(SearchResult searchResult, GraphContainer graphContainer)
SearchProvideronToggleCollapse in interface SearchProvideronToggleCollapse in class AbstractSearchProviderpublic Criteria buildCriteriaFromQuery(SearchResult input)
buildCriteriaFromQuery in interface HistoryAwareSearchProviderCopyright © 2020. All rights reserved.