Clover Coverage Report - Kuali Student 1.2.1-SNAPSHOT (Aggregated)
Coverage timestamp: Wed Nov 2 2011 04:03:58 EST
../../../../../../../../../img/srcFileCovDistChart0.png 42% of files have more coverage
20   95   10   4
0   57   0.5   5
5     2  
1    
 
  LuRpcGwtServlet       Line # 35 20 0% 10 25 0% 0.0
 
No Tests
 
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.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    * 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    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 org.kuali.student.lum.lu.ui.course.client.service.LuRemoteService#createClu(java.lang.String,
42    * org.kuali.student.lum.lu.dto.CluInfo)
43    */
 
44  0 toggle 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 org.kuali.student.lum.lu.ui.course.client.service.LuRemoteService#updateClu(java.lang.String,
55    * org.kuali.student.lum.lu.dto.CluInfo)
56    */
 
57  0 toggle @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   
 
67  0 toggle 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   
 
76  0 toggle @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   
 
86  0 toggle @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    }