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: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
- Specified by:
getSelection
in 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:SelectionAware
Allows theGraphProvider
to define if it contributes to a certainContentType
. Iffalse
it is not shown in the browsers tab at all- Specified by:
contributesTo
in interfaceSelectionAware
- Parameters:
type
- The type to check ifthis
contribute to- Returns:
- true if
this
contributes to the providedtype
-
getVertex
public Vertex getVertex(VertexRef target, Criteria... criteria)
- Specified by:
getVertex
in interfaceTopologyServiceClient
-
getNamespace
public String getNamespace()
- Specified by:
getNamespace
in interfaceTopologyServiceClient
-
getVertex
public Vertex getVertex(String namespace, String vertexId)
- Specified by:
getVertex
in interfaceTopologyServiceClient
-
getVertexTotalCount
public int getVertexTotalCount()
- Specified by:
getVertexTotalCount
in interfaceTopologyServiceClient
-
getEdgeTotalCount
public int getEdgeTotalCount()
- Specified by:
getEdgeTotalCount
in interfaceTopologyServiceClient
-
getInfo
public TopologyProviderInfo getInfo()
- Specified by:
getInfo
in interfaceTopologyServiceClient
-
getDefaults
public Defaults getDefaults()
- Specified by:
getDefaults
in interfaceTopologyServiceClient
-
getGraphProviders
public Collection<GraphProvider> getGraphProviders()
- Specified by:
getGraphProviders
in interfaceTopologyServiceClient
-
getOppositeVertices
public Collection<VertexRef> getOppositeVertices(VertexRef vertexRef)
- Specified by:
getOppositeVertices
in interfaceTopologyServiceClient
-
getGraphProviderBy
public GraphProvider getGraphProviderBy(String namespace)
- Specified by:
getGraphProviderBy
in interfaceTopologyServiceClient
-
getDefaultGraphProvider
public GraphProvider getDefaultGraphProvider()
- Specified by:
getDefaultGraphProvider
in interfaceTopologyServiceClient
-
getPreferredLayoutAlgorithm
public LayoutAlgorithm getPreferredLayoutAlgorithm()
- Specified by:
getPreferredLayoutAlgorithm
in interfaceTopologyServiceClient
-
getBreadcrumbStrategy
public BreadcrumbStrategy getBreadcrumbStrategy()
- Specified by:
getBreadcrumbStrategy
in interfaceTopologyServiceClient
-
getMetaTopologyId
public String getMetaTopologyId()
- Specified by:
getMetaTopologyId
in interfaceTopologyServiceClient
-
setMetaTopologyId
public void setMetaTopologyId(String metaTopologyId)
- Specified by:
setMetaTopologyId
in interfaceTopologyServiceClient
-
setNamespace
public void setNamespace(String namespace)
- Specified by:
setNamespace
in interfaceTopologyServiceClient
-
getGraph
public Graph getGraph(Criteria[] criteria, int semanticZoomLevel)
- Specified by:
getGraph
in interfaceTopologyServiceClient
-
-