Class PathOutageProvider
- java.lang.Object
-
- org.opennms.features.topology.api.topo.AbstractTopologyProvider
-
- org.opennms.features.topology.plugins.topo.pathoutage.PathOutageProvider
-
- All Implemented Interfaces:
SelectionAware
,GraphProvider
public class PathOutageProvider extends AbstractTopologyProvider
This provider allows us to build a vertex hierarchy, based on parent-child relations between nodes
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
NAMESPACE
-
Fields inherited from class org.opennms.features.topology.api.topo.AbstractTopologyProvider
graph, topologyProviderInfo
-
-
Constructor Summary
Constructors Constructor Description PathOutageProvider(NodeDao nodeDao, PathOutageStatusProvider pathOutageStatusProvider)
-
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(java.util.List<VertexRef> selectedVertices, ContentType type)
Converts the providedselectedVertices
to a Selection.void
refresh()
-
Methods inherited from class org.opennms.features.topology.api.topo.AbstractTopologyProvider
getCurrentGraph, getNamespace, getSelection, getTopologyProviderInfo, setTopologyProviderInfo
-
-
-
-
Field Detail
-
NAMESPACE
public static final java.lang.String NAMESPACE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
PathOutageProvider
public PathOutageProvider(NodeDao nodeDao, PathOutageStatusProvider pathOutageStatusProvider)
-
-
Method Detail
-
refresh
public void refresh()
- Specified by:
refresh
in interfaceGraphProvider
- Specified by:
refresh
in classAbstractTopologyProvider
-
getDefaults
public Defaults getDefaults()
-
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
- 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- Parameters:
type
- The type to check ifthis
contribute to- Returns:
- true if
this
contributes to the providedtype
-
-