]> git.argeo.org Git - gpl/argeo-slc.git/blob - runtime/org.argeo.slc.core/src/main/java/org/argeo/slc/dao/test/tree/TreeTestResultCollectionDao.java
Adds Unit Tests for ExcelGeneratorSource and AutouiRunnableFactory
[gpl/argeo-slc.git] / runtime / org.argeo.slc.core / src / main / java / org / argeo / slc / dao / test / tree / TreeTestResultCollectionDao.java
1 package org.argeo.slc.dao.test.tree;
2
3 import java.util.List;
4 import java.util.Map;
5 import java.util.SortedSet;
6
7 import org.argeo.slc.core.test.tree.ResultAttributes;
8 import org.argeo.slc.core.test.tree.TreeTestResult;
9 import org.argeo.slc.core.test.tree.TreeTestResultCollection;
10
11 /** Collections DAO */
12 public interface TreeTestResultCollectionDao {
13 public void create(TreeTestResultCollection ttrCollection);
14
15 public void update(TreeTestResultCollection ttrCollection);
16
17 public void delete(TreeTestResultCollection ttrCollection);
18
19 public TreeTestResultCollection getTestResultCollection(String id);
20
21 /** Lists all collections */
22 public SortedSet<TreeTestResultCollection> listCollections();
23
24 /**
25 * Lists only result ids and attributes of the results belonging to these
26 * collection, or all results if id is null.
27 */
28 public List<ResultAttributes> listResultAttributes(String collectionId);
29
30 /** Lists results filtering based on the arguments. */
31 public List<TreeTestResult> listResults(String collectionId,
32 Map<String, String> attributes);
33
34 /** Adds a result to a collection. */
35 public void addResultToCollection(TreeTestResultCollection ttrc,
36 String resultUuid);
37
38 /** Removes a result from a collection. */
39 public void removeResultFromCollection(TreeTestResultCollection ttrc,
40 String resultUuid);
41
42 }