| 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 | |
|
| 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 | |
|
| 42 | |
|
| 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 | |
|
| 55 | |
|
| 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 | |
} |