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 StringTOPOLOGY_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 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.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
-
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:
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
-
-