Interface SelectionAware
-
- All Known Subinterfaces:
GraphProvider
,TopologyServiceClient
- All Known Implementing Classes:
AbstractTopologyProvider
,BusinessServicesTopologyProvider
,DefaultTopologyServiceClient
,GraphMLTopologyProvider
,LegacyApplicationTopologyProvider
,LegacyTopologyProvider
,LinkdSelectionAware
,LinkdTopologyProvider
,PathOutageProvider
,SimpleGraphProvider
,VmwareTopologyProvider
public interface SelectionAware
Interface marking if aGraphProvider
is "selection aware". This allowsGraphProvider
s to filter the browser tables (e.g. alarm, node, etc) based on the current selection. In order to achieve that all selected Vertices must be converted to a list of Restrictions. The list of Restriction is represented bySelectionChangedListener.Selection
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
contributesTo(ContentType type)
Allows theGraphProvider
to define if it contributes to a certainContentType
.SelectionChangedListener.Selection
getSelection(List<VertexRef> selectedVertices, ContentType type)
Converts the providedselectedVertices
to a Selection.
-
-
-
Method Detail
-
getSelection
SelectionChangedListener.Selection getSelection(List<VertexRef> selectedVertices, ContentType type)
Converts the providedselectedVertices
to a Selection. The providedtype
represents the according browser table. This method is only invoked ifcontributesTo(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
boolean contributesTo(ContentType type)
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
-
-