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