Search in sources :

Example 46 with Criteria

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());
}
Also used : VertexHopCriteria(org.opennms.features.topology.api.support.VertexHopGraphProvider.VertexHopCriteria) Criteria(org.opennms.features.topology.api.topo.Criteria)

Aggregations

Criteria (org.opennms.features.topology.api.topo.Criteria)46 VertexRef (org.opennms.features.topology.api.topo.VertexRef)21 Map (java.util.Map)15 VertexHopCriteria (org.opennms.features.topology.api.support.VertexHopGraphProvider.VertexHopCriteria)15 CollapsibleCriteria (org.opennms.features.topology.api.topo.CollapsibleCriteria)15 List (java.util.List)14 Collectors (java.util.stream.Collectors)14 Status (org.opennms.features.topology.api.topo.Status)14 Lists (com.google.common.collect.Lists)11 ArrayList (java.util.ArrayList)9 Collection (java.util.Collection)9 StatusProvider (org.opennms.features.topology.api.topo.StatusProvider)9 Objects (java.util.Objects)8 Test (org.junit.Test)8 AlarmSummary (org.opennms.netmgt.model.alarm.AlarmSummary)8 HashSet (java.util.HashSet)7 Set (java.util.Set)7 AbstractVertex (org.opennms.features.topology.api.topo.AbstractVertex)7 DefaultVertexRef (org.opennms.features.topology.api.topo.DefaultVertexRef)7 VertexProvider (org.opennms.features.topology.api.topo.VertexProvider)7