Class LegacyApplicationTopologyProvider
- java.lang.Object
-
- org.opennms.features.topology.api.topo.AbstractTopologyProvider
-
- org.opennms.features.topology.plugins.topo.application.LegacyApplicationTopologyProvider
-
- All Implemented Interfaces:
SelectionAware
,GraphProvider
public class LegacyApplicationTopologyProvider extends AbstractTopologyProvider implements GraphProvider
-
-
Field Summary
Fields Modifier and Type Field Description static String
TOPOLOGY_NAMESPACE
-
Fields inherited from class org.opennms.features.topology.api.topo.AbstractTopologyProvider
graph, topologyProviderInfo
-
-
Constructor Summary
Constructors Constructor Description LegacyApplicationTopologyProvider(GraphService graphService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
contributesTo(ContentType type)
Allows theGraphProvider
to define if it contributes to a certainContentType
.Defaults
getDefaults()
SelectionChangedListener.Selection
getSelection(List<VertexRef> selectedVertices, ContentType contentType)
Converts the providedselectedVertices
to a Selection.void
refresh()
-
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
-
TOPOLOGY_NAMESPACE
public static final String TOPOLOGY_NAMESPACE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
LegacyApplicationTopologyProvider
public LegacyApplicationTopologyProvider(GraphService graphService)
-
-
Method Detail
-
refresh
public void refresh()
- Specified by:
refresh
in interfaceGraphProvider
- Specified by:
refresh
in classAbstractTopologyProvider
-
getDefaults
public Defaults getDefaults()
- Specified by:
getDefaults
in interfaceGraphProvider
-
getSelection
public SelectionChangedListener.Selection getSelection(List<VertexRef> selectedVertices, ContentType contentType)
Description copied from interface:SelectionAware
Converts the providedselectedVertices
to a Selection. The providedtype
represents the according browser table. This method is only invoked ifSelectionAware.contributesTo(ContentType)
returns to for the providedtype
- Specified by:
getSelection
in 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:SelectionAware
Allows theGraphProvider
to define if it contributes to a certainContentType
. Iffalse
it is not shown in the browsers tab at all- Specified by:
contributesTo
in interfaceSelectionAware
- Parameters:
type
- The type to check ifthis
contribute to- Returns:
- true if
this
contributes to the providedtype
-
-