public class NCSEdgeProvider extends Object implements EdgeProvider
Modifier and Type | Class and Description |
---|---|
static class |
NCSEdgeProvider.NCSEdge |
static class |
NCSEdgeProvider.NCSServiceCriteria |
static class |
NCSEdgeProvider.NCSVertex |
Constructor and Description |
---|
NCSEdgeProvider() |
Modifier and Type | Method and Description |
---|---|
void |
addEdgeListener(EdgeListener vertexListener) |
void |
clearEdges() |
boolean |
contributesTo(String namespace)
Defines if the current implementation contributes to the given namespace.
|
static Criteria |
createCriteria(Collection<Long> selectedIds) |
Edge |
getEdge(EdgeRef reference) |
Edge |
getEdge(String namespace,
String id) |
List<Edge> |
getEdges(Collection<? extends EdgeRef> references)
Return an immutable list of all edges that match this set of references.
|
List<Edge> |
getEdges(Criteria... criteria)
This factory works by using
NCSEdgeProvider.NCSServiceCriteria to construct edges based on
connecting all of the ServiceElements that make up a Service to each other. |
int |
getEdgeTotalCount() |
String |
getNamespace()
A string used to identify references belonging to this provider
May only contain characters that make for a reasonable Java identifier
such as letters digits and underscore (no colons, periods, commas etc.)
|
NCSComponentRepository |
getNcsComponentRepository() |
NodeDao |
getNodeDao() |
void |
removeEdgeListener(EdgeListener vertexListener) |
void |
setNcsComponentRepository(NCSComponentRepository dao) |
void |
setNodeDao(NodeDao dao) |
public NodeDao getNodeDao()
public void setNodeDao(NodeDao dao)
public NCSComponentRepository getNcsComponentRepository()
public void setNcsComponentRepository(NCSComponentRepository dao)
public void addEdgeListener(EdgeListener vertexListener)
addEdgeListener
in interface EdgeProvider
public Edge getEdge(String namespace, String id)
getEdge
in interface EdgeProvider
public Edge getEdge(EdgeRef reference)
getEdge
in interface EdgeProvider
public List<Edge> getEdges(Criteria... criteria)
NCSEdgeProvider.NCSServiceCriteria
to construct edges based on
connecting all of the ServiceElements that make up a Service to each other.getEdges
in interface EdgeProvider
criteria
- An NCSEdgeProvider.NCSServiceCriteria
objectpublic List<Edge> getEdges(Collection<? extends EdgeRef> references)
EdgeProvider
getEdges
in interface EdgeProvider
public String getNamespace()
NamespaceAware
getNamespace
in interface NamespaceAware
public boolean contributesTo(String namespace)
NamespaceAware
NamespaceAware.getNamespace()
, but is not a requirement.contributesTo
in interface NamespaceAware
namespace
- the namespace to contribute totrue
, if the current implementation contributes to the given namespace, otherwise false
.public void removeEdgeListener(EdgeListener vertexListener)
removeEdgeListener
in interface EdgeProvider
public static Criteria createCriteria(Collection<Long> selectedIds)
public void clearEdges()
clearEdges
in interface EdgeProvider
public int getEdgeTotalCount()
getEdgeTotalCount
in interface EdgeProvider
Copyright © 2019. All rights reserved.