X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Forg%2Fonap%2Fcrud%2Fdao%2FGraphDao.java;h=3ae8266f84b4c38b52f219e312ffef9a3efbacbf;hb=refs%2Fchanges%2F55%2F31755%2F1;hp=283e1a1cae3f84ca1ff42b5854b991dc2311c9d9;hpb=5db1e77ef9e2c43fd723dc629346baf3660fdf1b;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 283e1a1..3ae8266 100644 --- a/src/main/java/org/onap/crud/dao/GraphDao.java +++ b/src/main/java/org/onap/crud/dao/GraphDao.java @@ -36,7 +36,7 @@ public interface GraphDao { public Vertex getVertex(String id, String version) throws CrudException; - public Vertex getVertex(String id, String type, String version) throws CrudException; + public Vertex getVertex(String id, String type, String version, Map queryParams) throws CrudException; /** * Retrieve all of the edges which are incident to the vertex with the @@ -44,10 +44,12 @@ public interface GraphDao { * * @param id * - The unique identifier of the vertex to retrieve the edges for. + * @param queryParams + * - query parameters to be passed * @return - A collection of edges. * @throws CrudException */ - public List getVertexEdges(String id) throws CrudException; + public List getVertexEdges(String id, Map queryParams) throws CrudException; /** * Retrieve a collection of {@link Vertex} objects which match the supplied @@ -83,10 +85,14 @@ public interface GraphDao { * * @param id * - The unique identifier for the Edge to be retrieved. + * @param type + * - The type that we want to retrieve. + * @param queryParams + * - query parameters to be passed * @return - The Edge corresponding to the specified identifier. * @throws CrudException */ - public Edge getEdge(String id, String type) throws CrudException; + public Edge getEdge(String id, String type, Map queryParams) throws CrudException; /** * Retrieve a collection of {@link Edge} objects with a given type and which