}
});
Collections.addAll(allIds, additionalIds);
List<Edge> edges = toList(graph.getEdges(graph.findRelatedEdges(allIds, authorizations), authorizations));
ClientApiWorkspaceEdges results = new ClientApiWorkspaceEdges();
for (Edge edge : edges) {
ClientApiWorkspaceEdges.Edge e = new ClientApiWorkspaceEdges.Edge();
e.setFrom(edge.getVertexId(Direction.OUT));
e.setTo(edge.getVertexId(Direction.IN));
e.setRelationshipType(edge.getLabel());
e.setId(edge.getId());
e.setDiffType(GraphUtil.getSandboxStatus(edge, workspaceId));
e.setVisibilityJson(LumifyProperties.VISIBILITY_JSON.getPropertyValue(edge));
results.getEdges().add(e);
}
long endTime = System.nanoTime();
LOGGER.debug("Retrieved %d in %dms", edges.size(), (endTime - startTime) / 1000 / 1000);