1 |
|
|
2 |
|
|
3 |
|
|
4 |
|
|
5 |
|
|
6 |
|
|
7 |
|
|
8 |
|
|
9 |
|
|
10 |
|
|
11 |
|
|
12 |
|
|
13 |
|
|
14 |
|
|
15 |
|
|
16 |
|
package org.kuali.rice.edl.impl.extract; |
17 |
|
|
18 |
|
import java.util.Iterator; |
19 |
|
|
20 |
|
import org.kuali.rice.edl.framework.extract.DumpDTO; |
21 |
|
import org.kuali.rice.edl.framework.extract.ExtractService; |
22 |
|
import org.kuali.rice.edl.impl.extract.dao.ExtractDAO; |
23 |
|
|
24 |
|
|
|
|
| 0% |
Uncovered Elements: 23 (23) |
Complexity: 9 |
Complexity Density: 0.64 |
|
25 |
|
public class ExtractServiceImpl implements ExtractService { |
26 |
|
|
27 |
|
private static final org.apache.log4j.Logger LOG = org.apache.log4j.Logger.getLogger(ExtractServiceImpl.class); |
28 |
|
|
29 |
|
private ExtractDAO extractDAO; |
30 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
31 |
0
|
public DumpDTO getDumpByDocumentId(Long noteId) {... |
32 |
0
|
return Dump.to(getExtractDAO().getDumpByRouteHeaderId(noteId)); |
33 |
|
} |
34 |
|
|
|
|
| 0% |
Uncovered Elements: 12 (12) |
Complexity: 4 |
Complexity Density: 0.5 |
|
35 |
0
|
public void saveDump(DumpDTO dumpDTO) {... |
36 |
0
|
try { |
37 |
0
|
Dump dump = Dump.from(dumpDTO); |
38 |
0
|
getExtractDAO().saveDump(dump); |
39 |
0
|
if (! dump.getFields().isEmpty()){ |
40 |
0
|
for (Iterator iter = dump.getFields().iterator(); iter.hasNext();) { |
41 |
0
|
Fields field = (Fields) iter.next(); |
42 |
0
|
getExtractDAO().saveField(field); |
43 |
|
} |
44 |
|
} |
45 |
|
} catch (Exception e) { |
46 |
0
|
throw new RuntimeException(e); |
47 |
|
} |
48 |
|
} |
49 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
50 |
0
|
public void setExtractDAO(ExtractDAO extractDAO) {... |
51 |
0
|
this.extractDAO = extractDAO; |
52 |
|
} |
53 |
|
|
54 |
|
|
|
|
| 0% |
Uncovered Elements: 3 (3) |
Complexity: 2 |
Complexity Density: 0.67 |
|
55 |
0
|
public void deleteDump(Long docId) {... |
56 |
0
|
try { |
57 |
0
|
getExtractDAO().deleteDump(docId); |
58 |
|
} catch (Exception e) { |
59 |
0
|
throw new RuntimeException(e); |
60 |
|
} |
61 |
|
} |
62 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
63 |
0
|
public ExtractDAO getExtractDAO() {... |
64 |
0
|
return extractDAO; |
65 |
|
} |
66 |
|
} |