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.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
30
31
32
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
42
43
44 public CluInfo createClu(String luTypeKey, CluInfo cluInfo) {
45 try {
46 return service.createClu(luTypeKey, cluInfo);
47 } catch (Exception e) {
48 LOG.error(e);
49 }
50 return null;
51 }
52
53
54
55
56
57 @Override
58 public CluInfo updateClu(String cluId, CluInfo cluInfo) {
59 try {
60 return service.updateClu(cluId, cluInfo);
61 } catch (Exception e) {
62 LOG.error(e);
63 }
64 return null;
65 }
66
67 public List<CluLoRelationInfo> getCluLoRelationsByClu(String cluId) {
68 try {
69 return service.getCluLoRelationsByClu(cluId);
70 } catch (Exception e) {
71 LOG.error(e);
72 }
73 return null;
74 }
75
76 @Override
77 public CluInfo getClu(String cluId) {
78 try {
79 return service.getClu(cluId);
80 } catch (Exception e) {
81 LOG.error(e);
82 }
83 return null;
84 }
85
86 @Override
87 public VersionDisplayInfo getCurrentVersion(String refObjectTypeURI, String refObjectId) {
88 try {
89 return service.getCurrentVersion(refObjectTypeURI, refObjectId);
90 } catch (Exception e) {
91 LOG.error(e);
92 }
93 return null;
94 }
95 }