]> 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
Introduce JCR agent. Client agent not needed anymore.
[gpl/argeo-slc.git] / runtime / org.argeo.slc.core / src / main / java / org / argeo / slc / dao / test / tree / TreeTestResultCollectionDao.java
1 /*
2 * Copyright (C) 2010 Mathieu Baudier <mbaudier@argeo.org>
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17 package org.argeo.slc.dao.test.tree;
18
19 import java.util.List;
20 import java.util.Map;
21 import java.util.SortedSet;
22
23 import org.argeo.slc.core.test.tree.ResultAttributes;
24 import org.argeo.slc.core.test.tree.TreeTestResult;
25 import org.argeo.slc.core.test.tree.TreeTestResultCollection;
26
27 /** Collections DAO */
28 public interface TreeTestResultCollectionDao {
29 public void create(TreeTestResultCollection ttrCollection);
30
31 public void update(TreeTestResultCollection ttrCollection);
32
33 public void delete(TreeTestResultCollection ttrCollection);
34
35 public TreeTestResultCollection getTestResultCollection(String id);
36
37 /** Lists all collections */
38 public SortedSet<TreeTestResultCollection> listCollections();
39
40 /**
41 * Lists only result ids and attributes of the results belonging to these
42 * collection, or all results if id is null.
43 */
44 public List<ResultAttributes> listResultAttributes(String collectionId);
45
46 /** Lists results filtering based on the arguments. */
47 public List<TreeTestResult> listResults(String collectionId,
48 Map<String, String> attributes);
49
50 /** Adds a result to a collection. */
51 public void addResultToCollection(TreeTestResultCollection ttrc,
52 String resultUuid);
53
54 /** Removes a result from a collection. */
55 public void removeResultFromCollection(TreeTestResultCollection ttrc,
56 String resultUuid);
57
58 }