Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
LuRpcGwtServlet |
|
| 3.0;3 |
1 | /** | |
2 | * Copyright 2010 The Kuali Foundation Licensed under the | |
3 | * Educational Community License, Version 2.0 (the "License"); you may | |
4 | * not use this file except in compliance with the License. You may | |
5 | * obtain a copy of the License at | |
6 | * | |
7 | * http://www.osedu.org/licenses/ECL-2.0 | |
8 | * | |
9 | * Unless required by applicable law or agreed to in writing, | |
10 | * software distributed under the License is distributed on an "AS IS" | |
11 | * BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express | |
12 | * or implied. See the License for the specific language governing | |
13 | * permissions and limitations under the License. | |
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.core.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 | * This is a description of what this class does - Will Gomes don't forget to | |
30 | * fill this in. | |
31 | * | |
32 | * @author Kuali Student Team | |
33 | * | |
34 | */ | |
35 | 0 | public class LuRpcGwtServlet extends BaseRpcGwtServletAbstract<LuService> |
36 | implements LuRpcService { | |
37 | ||
38 | private static final long serialVersionUID = 1L; | |
39 | 0 | final static Logger LOG = Logger.getLogger(LuRpcGwtServlet.class); |
40 | /** | |
41 | * @see org.kuali.student.lum.lu.ui.course.client.service.LuRemoteService#createClu(java.lang.String, | |
42 | * org.kuali.student.lum.lu.dto.CluInfo) | |
43 | */ | |
44 | public CluInfo createClu(String luTypeKey, CluInfo cluInfo) { | |
45 | try { | |
46 | 0 | return service.createClu(luTypeKey, cluInfo); |
47 | 0 | } catch (Exception e) { |
48 | 0 | LOG.error(e); |
49 | } | |
50 | 0 | return null; |
51 | } | |
52 | ||
53 | /** | |
54 | * @see org.kuali.student.lum.lu.ui.course.client.service.LuRemoteService#updateClu(java.lang.String, | |
55 | * org.kuali.student.lum.lu.dto.CluInfo) | |
56 | */ | |
57 | @Override | |
58 | public CluInfo updateClu(String cluId, CluInfo cluInfo) { | |
59 | try { | |
60 | 0 | return service.updateClu(cluId, cluInfo); |
61 | 0 | } catch (Exception e) { |
62 | 0 | LOG.error(e); |
63 | } | |
64 | 0 | return null; |
65 | } | |
66 | ||
67 | public List<CluLoRelationInfo> getCluLoRelationsByClu(String cluId) { | |
68 | try { | |
69 | 0 | return service.getCluLoRelationsByClu(cluId); |
70 | 0 | } catch (Exception e) { |
71 | 0 | LOG.error(e); |
72 | } | |
73 | 0 | return null; |
74 | } | |
75 | ||
76 | @Override | |
77 | public CluInfo getClu(String cluId) { | |
78 | try { | |
79 | 0 | return service.getClu(cluId); |
80 | 0 | } catch (Exception e) { |
81 | 0 | LOG.error(e); |
82 | } | |
83 | 0 | return null; |
84 | } | |
85 | ||
86 | @Override | |
87 | public VersionDisplayInfo getCurrentVersion(String refObjectTypeURI, String refObjectId) { | |
88 | try { | |
89 | 0 | return service.getCurrentVersion(refObjectTypeURI, refObjectId); |
90 | 0 | } catch (Exception e) { |
91 | 0 | LOG.error(e); |
92 | } | |
93 | 0 | return null; |
94 | } | |
95 | } |