]> git.argeo.org Git - gpl/argeo-slc.git/blobdiff - runtime/org.argeo.slc.support.simple/src/main/java/org/argeo/slc/dao/test/tree/TreeTestResultCollectionDao.java
Introduce listResults service with filtering on collectionId and attributes
[gpl/argeo-slc.git] / runtime / org.argeo.slc.support.simple / src / main / java / org / argeo / slc / dao / test / tree / TreeTestResultCollectionDao.java
index 3b1101ee2e66b5f04839327742b06b5042f57b59..92e7eae573f9bb0bbc516fd3801e37ab0701ed3a 100644 (file)
@@ -1,11 +1,14 @@
 package org.argeo.slc.dao.test.tree;\r
 \r
 import java.util.List;\r
+import java.util.Map;\r
 import java.util.SortedSet;\r
 \r
 import org.argeo.slc.core.test.tree.ResultAttributes;\r
+import org.argeo.slc.core.test.tree.TreeTestResult;\r
 import org.argeo.slc.core.test.tree.TreeTestResultCollection;\r
 \r
+/** Collections DAO */\r
 public interface TreeTestResultCollectionDao {\r
        public void create(TreeTestResultCollection ttrCollection);\r
 \r
@@ -15,13 +18,24 @@ public interface TreeTestResultCollectionDao {
 \r
        public TreeTestResultCollection getTestResultCollection(String id);\r
 \r
+       /** Lists all collections */\r
        public SortedSet<TreeTestResultCollection> listCollections();\r
 \r
+       /**\r
+        * Lists only result ids and attributes of the results belonging to these\r
+        * collection, or all results if id is null.\r
+        */\r
        public List<ResultAttributes> listResultAttributes(String collectionId);\r
 \r
+       /** Lists results filtering based on the arguments. */\r
+       public List<TreeTestResult> listResults(String collectionId,\r
+                       Map<String, String> attributes);\r
+\r
+       /** Adds a result to a collection. */\r
        public void addResultToCollection(TreeTestResultCollection ttrc,\r
                        String resultUuid);\r
 \r
+       /** Removes a result from a collection. */\r
        public void removeResultFromCollection(TreeTestResultCollection ttrc,\r
                        String resultUuid);\r
 \r