Class LegacyTopologyProvider
- java.lang.Object
-
- org.opennms.netmgt.graph.provider.topology.LegacyTopologyProvider
-
- All Implemented Interfaces:
SelectionAware
,GraphProvider
public class LegacyTopologyProvider extends java.lang.Object implements GraphProvider
-
-
Constructor Summary
Constructors Constructor Description LegacyTopologyProvider(LegacyTopologyConfiguration configuration, NodeDao nodeDao, GraphService graphService, EnrichmentService enrichmentService, java.lang.String containerId, java.lang.String graphNamespace)
-
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
.BackendGraph
getCurrentGraph()
Defaults
getDefaults()
java.lang.String
getNamespace()
SelectionChangedListener.Selection
getSelection(java.util.List<VertexRef> selectedVertices, ContentType type)
Converts the providedselectedVertices
to a Selection.TopologyProviderInfo
getTopologyProviderInfo()
void
refresh()
-
-
-
Constructor Detail
-
LegacyTopologyProvider
public LegacyTopologyProvider(LegacyTopologyConfiguration configuration, NodeDao nodeDao, GraphService graphService, EnrichmentService enrichmentService, java.lang.String containerId, java.lang.String graphNamespace)
-
-
Method Detail
-
getCurrentGraph
public BackendGraph getCurrentGraph()
- Specified by:
getCurrentGraph
in interfaceGraphProvider
-
refresh
public void refresh()
- Specified by:
refresh
in interfaceGraphProvider
-
getNamespace
public java.lang.String getNamespace()
- Specified by:
getNamespace
in interfaceGraphProvider
-
getDefaults
public Defaults getDefaults()
- Specified by:
getDefaults
in interfaceGraphProvider
-
getTopologyProviderInfo
public TopologyProviderInfo getTopologyProviderInfo()
- Specified by:
getTopologyProviderInfo
in interfaceGraphProvider
-
getSelection
public SelectionChangedListener.Selection getSelection(java.util.List<VertexRef> selectedVertices, ContentType type)
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.type
- 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
-
-