Package io.lumify.web.clientapi.model

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


        if (vertex == null) {
            respondWithNotFound(response, String.format("vertex %s not found", graphVertexId));
            return;
        }

        ClientApiDetectedObjects detectedObjects = new ClientApiDetectedObjects();
        Iterable<Property> detectedObjectProperties = vertex.getProperties(propertyName);
        if (detectedObjectProperties == null || IterableUtils.count(detectedObjectProperties) == 0) {
            respondWithNotFound(response, String.format("property %s not found on vertex %s", propertyName, vertex.getId()));
            return;
        }
        detectedObjects.addDetectedObjects(ClientApiConverter.toClientApiProperties(detectedObjectProperties, workspaceId));

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

TOP

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

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.