X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;ds=sidebyside;f=src%2Fmain%2Fjava%2Forg%2Fonap%2Fcrud%2Fdao%2FGraphDao.java;h=c62a7881333e324ffb4aad1e279f4d7af077422e;hb=a0e716dc093cd8a4a4ec8aaca7bc1635e518527a;hp=bc42b15bf2d6c6c9b158505ba30faae919c979ee;hpb=f4c0fb22527af010761fee9955504bac72ca55db;p=aai%2Fgizmo.git diff --git a/src/main/java/org/onap/crud/dao/GraphDao.java b/src/main/java/org/onap/crud/dao/GraphDao.java index bc42b15..c62a788 100644 --- a/src/main/java/org/onap/crud/dao/GraphDao.java +++ b/src/main/java/org/onap/crud/dao/GraphDao.java @@ -23,6 +23,7 @@ */ package org.onap.crud.dao; +import java.util.HashSet; import java.util.List; import java.util.Map; @@ -61,6 +62,21 @@ public interface GraphDao { */ public List getVertices(String type, Map filter) throws CrudException; + /** + * Retrieve a collection of {@link Vertex} objects which match the supplied + * type label and filter properties. + * + * @param type + * - The vertex type that we want to retrieve. + * @param filter + * - The parameters to filter our results by. + * @param properties + * - The properties to retrieve with the vertex + * @return - A collection of vertices. + * @throws CrudException + */ + public List getVertices(String type, Map filter, HashSet properties) throws CrudException; + /** * Retrieve an {@link Edge} from the graph database by specifying its unique * identifier.