Class GraphMLSearchProvider
- java.lang.Object
-
- org.opennms.features.topology.api.topo.AbstractSearchProvider
-
- org.opennms.features.topology.api.topo.simple.SimpleSearchProvider
-
- org.opennms.features.topology.plugins.topo.graphml.GraphMLSearchProvider
-
- All Implemented Interfaces:
SearchProvider
public class GraphMLSearchProvider extends SimpleSearchProvider
SearchProviderfor GraphML definitions. The provider searches for matching vertices in ALL graphs, not only the current visible one.
-
-
Constructor Summary
Constructors Constructor Description GraphMLSearchProvider(GraphMLTopologyProvider graphMLTopologyProvider)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancontributesTo(String namespace)In GraphML graphs the namespace of each graph contained in the GraphML file should be prefixed, e.g.StringgetSearchProviderNamespace()This is a namespace for search providers...voidonFocusSearchResult(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.List<? extends VertexRef>queryVertices(SearchQuery searchQuery, GraphContainer container)-
Methods inherited from class org.opennms.features.topology.api.topo.simple.SimpleSearchProvider
addVertexHopCriteria, getVertexRefsBy, query, removeVertexHopCriteria, supportsPrefix
-
Methods inherited from class org.opennms.features.topology.api.topo.AbstractSearchProvider
onCenterSearchResult, onDefocusSearchResult, onToggleCollapse, supportsPrefix
-
-
-
-
Constructor Detail
-
GraphMLSearchProvider
public GraphMLSearchProvider(GraphMLTopologyProvider graphMLTopologyProvider)
-
-
Method Detail
-
contributesTo
public boolean contributesTo(String namespace)
In GraphML graphs the namespace of each graph contained in the GraphML file should be prefixed, e.g. namespace1:graph1, namespace1:graph2, etc.- Specified by:
contributesToin interfaceSearchProvider- Overrides:
contributesToin classSimpleSearchProvider- Parameters:
namespace- The namespace to check- Returns:
- true if this
SearchProvidercontributes, false otherwise
-
onFocusSearchResult
public void onFocusSearchResult(SearchResult searchResult, OperationContext operationContext)
Description copied from interface:SearchProviderThis method is called from the UI when the user wants to add a vertex that is in the current context to the focus list.- Specified by:
onFocusSearchResultin interfaceSearchProvider- Overrides:
onFocusSearchResultin classAbstractSearchProvider
-
getSearchProviderNamespace
public String getSearchProviderNamespace()
Description copied from interface:SearchProviderThis is a namespace for search providers...- Returns:
-
queryVertices
public List<? extends VertexRef> queryVertices(SearchQuery searchQuery, GraphContainer container)
- Specified by:
queryVerticesin classSimpleSearchProvider
-
-