public class NodeACLVertexProvider extends Object implements GraphProvider
Constructor and Description |
---|
NodeACLVertexProvider(GraphProvider delegate,
NodeDao nodeDao) |
Modifier and Type | Method and Description |
---|---|
void |
addEdgeListener(EdgeListener listener) |
void |
addEdges(Edge... edges) |
Vertex |
addGroup(String label,
String iconKey) |
Vertex |
addVertex(int x,
int y) |
void |
addVertexListener(VertexListener vertexListener) |
void |
addVertices(Vertex... vertices) |
void |
clearEdges() |
void |
clearVertices() |
Edge |
connectVertices(VertexRef sourceVertextId,
VertexRef targetVertextId) |
boolean |
containsVertexId(String id) |
boolean |
containsVertexId(VertexRef id,
Criteria... criteria) |
boolean |
contributesTo(String namespace)
This boolean returns true if the vertices in this provider are intended
to contribute to or overlay another namespace
|
List<Vertex> |
getChildren(VertexRef group,
Criteria... criteria) |
Criteria |
getDefaultCriteria() |
Edge |
getEdge(EdgeRef reference) |
Edge |
getEdge(String namespace,
String id) |
EdgeRef[] |
getEdgeIdsForVertex(VertexRef vertex) |
Map<VertexRef,Set<EdgeRef>> |
getEdgeIdsForVertices(VertexRef... vertex)
This function can be used for efficiency when you need the
EdgeRef
instances for a large number of vertices. |
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)
Return an immutable list of edges that match the criteria.
|
Vertex |
getParent(VertexRef vertex) |
List<Vertex> |
getRootGroup() |
int |
getSemanticZoomLevel(VertexRef vertex) |
Vertex |
getVertex(String namespace,
String id) |
Vertex |
getVertex(VertexRef reference,
Criteria... criteria) |
String |
getVertexNamespace()
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.)
|
int |
getVertexTotalCount() |
List<Vertex> |
getVertices(Collection<? extends VertexRef> references,
Criteria... criteria) |
List<Vertex> |
getVertices(Criteria... criteria)
Return an immutable list of vertices that match the criteria.
|
boolean |
groupingSupported()
This function indicates support for (mostly legacy) grouping operations.
|
boolean |
hasChildren(VertexRef group) |
void |
load(String filename) |
void |
refresh() |
void |
removeEdgeListener(EdgeListener listener) |
void |
removeEdges(EdgeRef... edges) |
void |
removeVertex(VertexRef... vertexId) |
void |
removeVertexListener(VertexListener vertexListener) |
void |
resetContainer() |
void |
save() |
boolean |
setParent(VertexRef child,
VertexRef parent) |
public NodeACLVertexProvider(GraphProvider delegate, NodeDao nodeDao)
public void save()
save
in interface GraphProvider
public void load(String filename) throws MalformedURLException, JAXBException
load
in interface GraphProvider
MalformedURLException
JAXBException
public void refresh()
refresh
in interface GraphProvider
public void resetContainer()
resetContainer
in interface GraphProvider
public void addVertices(Vertex... vertices)
addVertices
in interface GraphProvider
public void removeVertex(VertexRef... vertexId)
removeVertex
in interface GraphProvider
public Vertex addVertex(int x, int y)
addVertex
in interface GraphProvider
public boolean groupingSupported()
GraphProvider
groupingSupported
in interface GraphProvider
public Vertex addGroup(String label, String iconKey)
addGroup
in interface GraphProvider
public EdgeRef[] getEdgeIdsForVertex(VertexRef vertex)
getEdgeIdsForVertex
in interface GraphProvider
public Map<VertexRef,Set<EdgeRef>> getEdgeIdsForVertices(VertexRef... vertex)
GraphProvider
EdgeRef
instances for a large number of vertices.getEdgeIdsForVertices
in interface GraphProvider
public void addEdges(Edge... edges)
addEdges
in interface GraphProvider
public void removeEdges(EdgeRef... edges)
removeEdges
in interface GraphProvider
public Edge connectVertices(VertexRef sourceVertextId, VertexRef targetVertextId)
connectVertices
in interface GraphProvider
public Criteria getDefaultCriteria()
getDefaultCriteria
in interface GraphProvider
public String getEdgeNamespace()
EdgeProvider
getEdgeNamespace
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)
EdgeProvider
getEdges
in interface EdgeProvider
public List<Edge> getEdges(Collection<? extends EdgeRef> references)
EdgeProvider
getEdges
in interface EdgeProvider
public void addEdgeListener(EdgeListener listener)
addEdgeListener
in interface EdgeProvider
public void removeEdgeListener(EdgeListener listener)
removeEdgeListener
in interface EdgeProvider
public void clearEdges()
clearEdges
in interface EdgeProvider
public String getVertexNamespace()
VertexProvider
getVertexNamespace
in interface VertexProvider
public boolean contributesTo(String namespace)
VertexProvider
contributesTo
in interface EdgeProvider
contributesTo
in interface VertexProvider
namespace
- the namespace of a providerpublic boolean containsVertexId(String id)
containsVertexId
in interface VertexProvider
public boolean containsVertexId(VertexRef id, Criteria... criteria)
containsVertexId
in interface VertexProvider
public Vertex getVertex(String namespace, String id)
getVertex
in interface VertexProvider
public Vertex getVertex(VertexRef reference, Criteria... criteria)
getVertex
in interface VertexProvider
public int getSemanticZoomLevel(VertexRef vertex)
getSemanticZoomLevel
in interface VertexProvider
public List<Vertex> getVertices(Criteria... criteria)
VertexProvider
getVertices
in interface VertexProvider
public List<Vertex> getVertices(Collection<? extends VertexRef> references, Criteria... criteria)
getVertices
in interface VertexProvider
public List<Vertex> getRootGroup()
getRootGroup
in interface VertexProvider
public boolean hasChildren(VertexRef group)
hasChildren
in interface VertexProvider
public Vertex getParent(VertexRef vertex)
getParent
in interface VertexProvider
public boolean setParent(VertexRef child, VertexRef parent)
setParent
in interface VertexProvider
public List<Vertex> getChildren(VertexRef group, Criteria... criteria)
getChildren
in interface VertexProvider
public void addVertexListener(VertexListener vertexListener)
addVertexListener
in interface VertexProvider
public void removeVertexListener(VertexListener vertexListener)
removeVertexListener
in interface VertexProvider
public void clearVertices()
clearVertices
in interface VertexProvider
public int getVertexTotalCount()
getVertexTotalCount
in interface VertexProvider
Copyright © 2016. All rights reserved.