Interface SelectionAware
-
- All Known Subinterfaces:
GraphProvider,TopologyServiceClient
- All Known Implementing Classes:
AbstractTopologyProvider,BusinessServicesTopologyProvider,DefaultTopologyServiceClient,GraphMLTopologyProvider,LegacyApplicationTopologyProvider,LegacyTopologyProvider,LinkdSelectionAware,LinkdTopologyProvider,PathOutageProvider,SimpleGraphProvider,VmwareTopologyProvider
public interface SelectionAwareInterface marking if aGraphProvideris "selection aware". This allowsGraphProviders 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 booleancontributesTo(ContentType type)Allows theGraphProviderto define if it contributes to a certainContentType.SelectionChangedListener.SelectiongetSelection(List<VertexRef> selectedVertices, ContentType type)Converts the providedselectedVerticesto a Selection.
-
-
-
Method Detail
-
getSelection
SelectionChangedListener.Selection getSelection(List<VertexRef> selectedVertices, ContentType type)
Converts the providedselectedVerticesto a Selection. The providedtyperepresents 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 theGraphProviderto define if it contributes to a certainContentType. Iffalseit is not shown in the browsers tab at all- Parameters:
type- The type to check ifthiscontribute to- Returns:
- true if
thiscontributes to the providedtype
-
-