Package io.lumify.web.clientapi.model

Examples of io.lumify.web.clientapi.model.ClientApiVertexFindRelatedResponse


        }

        Iterable<Vertex> vertices = graph.getVertex(graphVertexId, authorizations)
                .getVertices(Direction.BOTH, authorizations);

        ClientApiVertexFindRelatedResponse result = new ClientApiVertexFindRelatedResponse();
        long count = 0;
        for (Vertex vertex : vertices) {
            if (limitConceptIds.size() == 0 || !isLimited(limitConceptIds, vertex)) {
                if (count < maxVerticesToReturn) {
                    result.getVertices().add(ClientApiConverter.toClientApiVertex(vertex, workspaceId, authorizations));
                }
                count++;
            }
        }
        result.setCount(count);

        respondWithClientApiObject(response, result);
    }
View Full Code Here

TOP

Related Classes of io.lumify.web.clientapi.model.ClientApiVertexFindRelatedResponse

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.