Class GraphMLTopologyProvider
- java.lang.Object
-
- org.opennms.features.topology.api.topo.AbstractTopologyProvider
-
- org.opennms.features.topology.plugins.topo.graphml.GraphMLTopologyProvider
-
- All Implemented Interfaces:
SelectionAware,GraphProvider
public class GraphMLTopologyProvider extends AbstractTopologyProvider implements GraphProvider
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGraphMLTopologyProvider.VertexStatusProviderType
-
Field Summary
Fields Modifier and Type Field Description protected static StringDEFAULT_DESCRIPTION-
Fields inherited from class org.opennms.features.topology.api.topo.AbstractTopologyProvider
graph, topologyProviderInfo
-
-
Constructor Summary
Constructors Constructor Description GraphMLTopologyProvider(GraphMLGraph graphMLGraph, GraphMLServiceAccessor serviceAccessor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancontributesTo(ContentType type)Allows theGraphProviderto define if it contributes to a certainContentType.DefaultsgetDefaults()SelectionChangedListener.SelectiongetSelection(List<VertexRef> selectedVertices, ContentType contentType)Converts the providedselectedVerticesto a Selection.GraphMLTopologyProvider.VertexStatusProviderTypegetVertexStatusProviderType()voidrefresh()-
Methods inherited from class org.opennms.features.topology.api.topo.AbstractTopologyProvider
getCurrentGraph, getNamespace, getSelection, getTopologyProviderInfo, setTopologyProviderInfo
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.opennms.features.topology.api.topo.GraphProvider
getCurrentGraph, getNamespace, getTopologyProviderInfo
-
-
-
-
Field Detail
-
DEFAULT_DESCRIPTION
protected static final String DEFAULT_DESCRIPTION
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
GraphMLTopologyProvider
public GraphMLTopologyProvider(GraphMLGraph graphMLGraph, GraphMLServiceAccessor serviceAccessor)
-
-
Method Detail
-
refresh
public void refresh()
- Specified by:
refreshin interfaceGraphProvider- Specified by:
refreshin classAbstractTopologyProvider
-
getDefaults
public Defaults getDefaults()
- Specified by:
getDefaultsin interfaceGraphProvider
-
getSelection
public SelectionChangedListener.Selection getSelection(List<VertexRef> selectedVertices, ContentType contentType)
Description copied from interface:SelectionAwareConverts the providedselectedVerticesto a Selection. The providedtyperepresents the according browser table. This method is only invoked ifSelectionAware.contributesTo(ContentType)returns to for the providedtype- Specified by:
getSelectionin interfaceSelectionAware- Parameters:
selectedVertices- The vertices currently selected in the Topology UI.contentType- The type to filter for. Represents the according browser table.- Returns:
- The selection containing the List of Restrictions. Must NOT be null.
- See Also:
SelectionChangedListener.Selection
-
contributesTo
public boolean contributesTo(ContentType type)
Description copied from interface:SelectionAwareAllows theGraphProviderto define if it contributes to a certainContentType. Iffalseit is not shown in the browsers tab at all- Specified by:
contributesToin interfaceSelectionAware- Parameters:
type- The type to check ifthiscontribute to- Returns:
- true if
thiscontributes to the providedtype
-
getVertexStatusProviderType
public GraphMLTopologyProvider.VertexStatusProviderType getVertexStatusProviderType()
-
-