2 * Copyright (C) 2010 Mathieu Baudier <mbaudier@argeo.org>
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
8 * http://www.apache.org/licenses/LICENSE-2.0
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.
17 package org
.argeo
.slc
.dao
.test
.tree
;
19 import java
.util
.List
;
21 import java
.util
.SortedSet
;
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
;
27 /** Collections DAO */
28 public interface TreeTestResultCollectionDao
{
29 public void create(TreeTestResultCollection ttrCollection
);
31 public void update(TreeTestResultCollection ttrCollection
);
33 public void delete(TreeTestResultCollection ttrCollection
);
35 public TreeTestResultCollection
getTestResultCollection(String id
);
37 /** Lists all collections */
38 public SortedSet
<TreeTestResultCollection
> listCollections();
41 * Lists only result ids and attributes of the results belonging to these
42 * collection, or all results if id is null.
44 public List
<ResultAttributes
> listResultAttributes(String collectionId
);
46 /** Lists results filtering based on the arguments. */
47 public List
<TreeTestResult
> listResults(String collectionId
,
48 Map
<String
, String
> attributes
);
50 /** Adds a result to a collection. */
51 public void addResultToCollection(TreeTestResultCollection ttrc
,
54 /** Removes a result from a collection. */
55 public void removeResultFromCollection(TreeTestResultCollection ttrc
,