Class DefaultTopologyServiceClient
- java.lang.Object
-
- org.opennms.features.topology.app.internal.DefaultTopologyServiceClient
-
- All Implemented Interfaces:
SelectionAware,TopologyServiceClient
public class DefaultTopologyServiceClient extends Object implements TopologyServiceClient
-
-
Constructor Summary
Constructors Constructor Description DefaultTopologyServiceClient(TopologyService topologyService)
-
Method Summary
-
-
-
Constructor Detail
-
DefaultTopologyServiceClient
public DefaultTopologyServiceClient(TopologyService topologyService)
-
-
Method Detail
-
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
-
getVertex
public Vertex getVertex(VertexRef target, Criteria... criteria)
- Specified by:
getVertexin interfaceTopologyServiceClient
-
getNamespace
public String getNamespace()
- Specified by:
getNamespacein interfaceTopologyServiceClient
-
getVertex
public Vertex getVertex(String namespace, String vertexId)
- Specified by:
getVertexin interfaceTopologyServiceClient
-
getVertexTotalCount
public int getVertexTotalCount()
- Specified by:
getVertexTotalCountin interfaceTopologyServiceClient
-
getEdgeTotalCount
public int getEdgeTotalCount()
- Specified by:
getEdgeTotalCountin interfaceTopologyServiceClient
-
getInfo
public TopologyProviderInfo getInfo()
- Specified by:
getInfoin interfaceTopologyServiceClient
-
getDefaults
public Defaults getDefaults()
- Specified by:
getDefaultsin interfaceTopologyServiceClient
-
getGraphProviders
public Collection<GraphProvider> getGraphProviders()
- Specified by:
getGraphProvidersin interfaceTopologyServiceClient
-
getOppositeVertices
public Collection<VertexRef> getOppositeVertices(VertexRef vertexRef)
- Specified by:
getOppositeVerticesin interfaceTopologyServiceClient
-
getGraphProviderBy
public GraphProvider getGraphProviderBy(String namespace)
- Specified by:
getGraphProviderByin interfaceTopologyServiceClient
-
getDefaultGraphProvider
public GraphProvider getDefaultGraphProvider()
- Specified by:
getDefaultGraphProviderin interfaceTopologyServiceClient
-
getPreferredLayoutAlgorithm
public LayoutAlgorithm getPreferredLayoutAlgorithm()
- Specified by:
getPreferredLayoutAlgorithmin interfaceTopologyServiceClient
-
getBreadcrumbStrategy
public BreadcrumbStrategy getBreadcrumbStrategy()
- Specified by:
getBreadcrumbStrategyin interfaceTopologyServiceClient
-
getMetaTopologyId
public String getMetaTopologyId()
- Specified by:
getMetaTopologyIdin interfaceTopologyServiceClient
-
setMetaTopologyId
public void setMetaTopologyId(String metaTopologyId)
- Specified by:
setMetaTopologyIdin interfaceTopologyServiceClient
-
setNamespace
public void setNamespace(String namespace)
- Specified by:
setNamespacein interfaceTopologyServiceClient
-
getGraph
public Graph getGraph(Criteria[] criteria, int semanticZoomLevel)
- Specified by:
getGraphin interfaceTopologyServiceClient
-
-