use of org.opennms.features.topology.api.topo.Criteria in project opennms by OpenNMS.
the class NCSSearchProvider method onCenterSearchResult.
@Override
public void onCenterSearchResult(SearchResult searchResult, GraphContainer graphContainer) {
Criteria criteria = NCSEdgeProvider.createCriteria(Collections.singletonList(Long.parseLong(searchResult.getId())));
if (m_serviceManager.isCriteriaRegistered(NAMESPACE, graphContainer.getSessionId())) {
m_serviceManager.unregisterCriteria(NAMESPACE, graphContainer.getSessionId());
}
m_serviceManager.registerCriteria(criteria, graphContainer.getSessionId());
}
Aggregations