1 |
|
|
2 |
|
|
3 |
|
|
4 |
|
|
5 |
|
|
6 |
|
|
7 |
|
|
8 |
|
|
9 |
|
|
10 |
|
|
11 |
|
|
12 |
|
|
13 |
|
|
14 |
|
|
15 |
|
|
16 |
|
package org.kuali.student.lum.lu.ui.course.server.gwt; |
17 |
|
|
18 |
|
import java.util.List; |
19 |
|
|
20 |
|
import org.apache.log4j.Logger; |
21 |
|
import org.kuali.student.common.ui.server.gwt.BaseRpcGwtServletAbstract; |
22 |
|
import org.kuali.student.common.versionmanagement.dto.VersionDisplayInfo; |
23 |
|
import org.kuali.student.lum.lu.dto.CluInfo; |
24 |
|
import org.kuali.student.lum.lu.dto.CluLoRelationInfo; |
25 |
|
import org.kuali.student.lum.lu.service.LuService; |
26 |
|
import org.kuali.student.lum.lu.ui.course.client.service.LuRpcService; |
27 |
|
|
28 |
|
|
29 |
|
|
30 |
|
|
31 |
|
|
32 |
|
@author |
33 |
|
|
34 |
|
|
|
|
| 0% |
Uncovered Elements: 25 (25) |
Complexity: 10 |
Complexity Density: 0.5 |
|
35 |
|
public class LuRpcGwtServlet extends BaseRpcGwtServletAbstract<LuService> |
36 |
|
implements LuRpcService { |
37 |
|
|
38 |
|
private static final long serialVersionUID = 1L; |
39 |
|
final static Logger LOG = Logger.getLogger(LuRpcGwtServlet.class); |
40 |
|
|
41 |
|
@see |
42 |
|
|
43 |
|
|
|
|
| 0% |
Uncovered Elements: 4 (4) |
Complexity: 2 |
Complexity Density: 0.5 |
|
44 |
0
|
public CluInfo createClu(String luTypeKey, CluInfo cluInfo) {... |
45 |
0
|
try { |
46 |
0
|
return service.createClu(luTypeKey, cluInfo); |
47 |
|
} catch (Exception e) { |
48 |
0
|
LOG.error(e); |
49 |
|
} |
50 |
0
|
return null; |
51 |
|
} |
52 |
|
|
53 |
|
|
54 |
|
@see |
55 |
|
|
56 |
|
|
|
|
| 0% |
Uncovered Elements: 4 (4) |
Complexity: 2 |
Complexity Density: 0.5 |
|
57 |
0
|
@Override... |
58 |
|
public CluInfo updateClu(String cluId, CluInfo cluInfo) { |
59 |
0
|
try { |
60 |
0
|
return service.updateClu(cluId, cluInfo); |
61 |
|
} catch (Exception e) { |
62 |
0
|
LOG.error(e); |
63 |
|
} |
64 |
0
|
return null; |
65 |
|
} |
66 |
|
|
|
|
| 0% |
Uncovered Elements: 4 (4) |
Complexity: 2 |
Complexity Density: 0.5 |
|
67 |
0
|
public List<CluLoRelationInfo> getCluLoRelationsByClu(String cluId) {... |
68 |
0
|
try { |
69 |
0
|
return service.getCluLoRelationsByClu(cluId); |
70 |
|
} catch (Exception e) { |
71 |
0
|
LOG.error(e); |
72 |
|
} |
73 |
0
|
return null; |
74 |
|
} |
75 |
|
|
|
|
| 0% |
Uncovered Elements: 4 (4) |
Complexity: 2 |
Complexity Density: 0.5 |
|
76 |
0
|
@Override... |
77 |
|
public CluInfo getClu(String cluId) { |
78 |
0
|
try { |
79 |
0
|
return service.getClu(cluId); |
80 |
|
} catch (Exception e) { |
81 |
0
|
LOG.error(e); |
82 |
|
} |
83 |
0
|
return null; |
84 |
|
} |
85 |
|
|
|
|
| 0% |
Uncovered Elements: 4 (4) |
Complexity: 2 |
Complexity Density: 0.5 |
|
86 |
0
|
@Override... |
87 |
|
public VersionDisplayInfo getCurrentVersion(String refObjectTypeURI, String refObjectId) { |
88 |
0
|
try { |
89 |
0
|
return service.getCurrentVersion(refObjectTypeURI, refObjectId); |
90 |
|
} catch (Exception e) { |
91 |
0
|
LOG.error(e); |
92 |
|
} |
93 |
0
|
return null; |
94 |
|
} |
95 |
|
} |