summaryrefslogtreecommitdiffstats
path: root/src/main/java/org/onap/crud/dao/GraphDao.java
diff options
context:
space:
mode:
authorDaniel Silverthorn <daniel.silverthorn@amdocs.com>2018-01-22 11:28:42 -0500
committerDaniel Silverthorn <daniel.silverthorn@amdocs.com>2018-01-22 11:45:36 -0500
commita0e716dc093cd8a4a4ec8aaca7bc1635e518527a (patch)
tree03aa30d5191e087ebd0c8c803b87a3f163cdb369 /src/main/java/org/onap/crud/dao/GraphDao.java
parentf4c0fb22527af010761fee9955504bac72ca55db (diff)
Add query parameters to get properties
Issue-ID: AAI-685 Change-Id: Id06a08ef668591560d276ef8a79c095f31d8c85b Signed-off-by: Daniel Silverthorn <daniel.silverthorn@amdocs.com>
Diffstat (limited to 'src/main/java/org/onap/crud/dao/GraphDao.java')
-rw-r--r--src/main/java/org/onap/crud/dao/GraphDao.java16
1 files changed, 16 insertions, 0 deletions
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;
@@ -62,6 +63,21 @@ public interface GraphDao {
public List<Vertex> getVertices(String type, Map<String, Object> 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<Vertex> getVertices(String type, Map<String, Object> filter, HashSet<String> properties) throws CrudException;
+
+ /**
* Retrieve an {@link Edge} from the graph database by specifying its unique
* identifier.
*