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
.SortedMap
;
23 import org
.argeo
.slc
.core
.attachment
.SimpleAttachment
;
24 import org
.argeo
.slc
.core
.structure
.tree
.TreeSPath
;
25 import org
.argeo
.slc
.core
.test
.SimpleResultPart
;
26 import org
.argeo
.slc
.core
.test
.tree
.TreeTestResult
;
27 import org
.argeo
.slc
.dao
.test
.TestResultDao
;
28 import org
.argeo
.slc
.structure
.StructureElement
;
31 * Adds DAO features specific to tree test result.
36 public interface TreeTestResultDao
extends TestResultDao
<TreeTestResult
> {
37 /** Lists results containing this path */
38 public List
<TreeTestResult
> listResults(TreeSPath path
);
40 /** Adds a result part related to this path */
41 public void addResultPart(String testResultId
, TreeSPath path
,
42 SimpleResultPart resultPart
,
43 Map
<TreeSPath
, StructureElement
> relatedElements
);
45 /** Update attributes */
46 public void updateAttributes(String testResultId
,
47 SortedMap
<String
, String
> attributes
);
49 public void addAttachment(String testResultId
, SimpleAttachment attachment
);