public class DefaultTopologyServiceClient extends Object implements TopologyServiceClient
Constructor and Description |
---|
DefaultTopologyServiceClient(TopologyService topologyService) |
public DefaultTopologyServiceClient(TopologyService topologyService)
public SelectionChangedListener.Selection getSelection(List<VertexRef> selectedVertices, ContentType type)
SelectionAware
selectedVertices
to a Selection.
The provided type
represents the according browser table.
This method is only invoked if SelectionAware.contributesTo(ContentType)
returns to for the provided type
getSelection
in interface SelectionAware
selectedVertices
- The vertices currently selected in the Topology UI.type
- The type to filter for. Represents the according browser table.SelectionChangedListener.Selection
public boolean contributesTo(ContentType type)
SelectionAware
GraphProvider
to define if it
contributes to a certain ContentType
.
If false
it is not shown in the browsers tab at allcontributesTo
in interface SelectionAware
type
- The type to check if this
contribute tothis
contributes to the provided type
public Vertex getVertex(VertexRef target, Criteria... criteria)
getVertex
in interface TopologyServiceClient
public String getNamespace()
getNamespace
in interface TopologyServiceClient
public Vertex getVertex(String namespace, String vertexId)
getVertex
in interface TopologyServiceClient
public int getVertexTotalCount()
getVertexTotalCount
in interface TopologyServiceClient
public int getEdgeTotalCount()
getEdgeTotalCount
in interface TopologyServiceClient
public TopologyProviderInfo getInfo()
getInfo
in interface TopologyServiceClient
public Defaults getDefaults()
getDefaults
in interface TopologyServiceClient
public Collection<GraphProvider> getGraphProviders()
getGraphProviders
in interface TopologyServiceClient
public Collection<VertexRef> getOppositeVertices(VertexRef vertexRef)
getOppositeVertices
in interface TopologyServiceClient
public GraphProvider getGraphProviderBy(String namespace)
getGraphProviderBy
in interface TopologyServiceClient
public GraphProvider getDefaultGraphProvider()
getDefaultGraphProvider
in interface TopologyServiceClient
public LayoutAlgorithm getPreferredLayoutAlgorithm()
getPreferredLayoutAlgorithm
in interface TopologyServiceClient
public BreadcrumbStrategy getBreadcrumbStrategy()
getBreadcrumbStrategy
in interface TopologyServiceClient
public String getMetaTopologyId()
getMetaTopologyId
in interface TopologyServiceClient
public void setMetaTopologyId(String metaTopologyId)
setMetaTopologyId
in interface TopologyServiceClient
public void setNamespace(String namespace)
setNamespace
in interface TopologyServiceClient
public Graph getGraph(Criteria[] criteria, int semanticZoomLevel)
getGraph
in interface TopologyServiceClient
Copyright © 2021. All rights reserved.