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
\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