public class LinkdTopologyProvider extends AbstractTopologyProvider implements GraphProvider
graph, topologyProviderInfo
Constructor and Description |
---|
LinkdTopologyProvider(com.codahale.metrics.MetricRegistry registry) |
Modifier and Type | Method and Description |
---|---|
boolean |
contributesTo(ContentType type)
Allows the
GraphProvider to define if it
contributes to a certain ContentType . |
Defaults |
getDefaults() |
Vertex |
getDefaultVertex() |
OnmsTopologyDao |
getOnmsTopologyDao() |
SelectionChangedListener.Selection |
getSelection(List<VertexRef> selectedVertices,
ContentType type)
Converts the provided
selectedVertices to a Selection. |
void |
refresh() |
void |
setOnmsTopologyDao(OnmsTopologyDao onmsTopologyDao) |
getCurrentGraph, getNamespace, getSelection, getTopologyProviderInfo, setTopologyProviderInfo
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getCurrentGraph, getNamespace, getTopologyProviderInfo
public LinkdTopologyProvider(com.codahale.metrics.MetricRegistry registry)
public SelectionChangedListener.Selection getSelection(List<VertexRef> selectedVertices, ContentType type)
SelectionAware
selectedVertices
to a Selection.
The provided type
represents the according browser table.
This method is only invoked if SelectionAware.contributesTo(ContentType)
returns to for the provided type
getSelection
in interface SelectionAware
selectedVertices
- The vertices currently selected in the Topology UI.type
- The type to filter for. Represents the according browser table.SelectionChangedListener.Selection
public boolean contributesTo(ContentType type)
SelectionAware
GraphProvider
to define if it
contributes to a certain ContentType
.
If false
it is not shown in the browsers tab at allcontributesTo
in interface SelectionAware
type
- The type to check if this
contribute tothis
contributes to the provided type
public Vertex getDefaultVertex()
public Defaults getDefaults()
getDefaults
in interface GraphProvider
public void refresh()
refresh
in interface GraphProvider
refresh
in class AbstractTopologyProvider
public OnmsTopologyDao getOnmsTopologyDao()
public void setOnmsTopologyDao(OnmsTopologyDao onmsTopologyDao)
Copyright © 2020. All rights reserved.