Package io.lumify.web.clientapi.model

Examples of io.lumify.web.clientapi.model.ClientApiWorkspaceEdges$Edge


            }
        });
        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);
View Full Code Here

TOP

Related Classes of io.lumify.web.clientapi.model.ClientApiWorkspaceEdges$Edge

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.