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)
This boolean returns true if the edges in this provider are intended
to contribute to or overlay another namespace
|
static Criteria |
createCriteria(Collection<Long> selectedIds) |
Edge |
getEdge(EdgeRef reference) |
Edge |
getEdge(String namespace,
String id) |
String |
getEdgeNamespace()
A string used to identify references belonging to this provider
May only container characters that make for a reasonable java identifier
such as letters digits and underscore (no colons, periods, commans etc.)
|
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. |
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 getEdgeNamespace()
EdgeProvider
getEdgeNamespace
in interface EdgeProvider
public boolean contributesTo(String namespace)
EdgeProvider
contributesTo
in interface EdgeProvider
namespace
- the namespace of a providerpublic void removeEdgeListener(EdgeListener vertexListener)
removeEdgeListener
in interface EdgeProvider
public static Criteria createCriteria(Collection<Long> selectedIds)
public void clearEdges()
clearEdges
in interface EdgeProvider
Copyright © 2017. All rights reserved.