| 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 | |
|
| 19 | |
import org.apache.log4j.Logger; |
| 20 | |
import org.kuali.student.common.ui.server.gwt.DataGwtServlet; |
| 21 | |
import org.kuali.student.core.dto.StatusInfo; |
| 22 | |
import org.kuali.student.lum.common.client.lo.rpc.LoCategoryRpcService; |
| 23 | |
import org.kuali.student.lum.lo.dto.LoCategoryInfo; |
| 24 | |
import org.kuali.student.lum.lo.dto.LoCategoryTypeInfo; |
| 25 | |
import org.kuali.student.lum.lo.dto.LoInfo; |
| 26 | |
import org.kuali.student.lum.lo.service.LearningObjectiveService; |
| 27 | |
|
| 28 | |
import java.util.Date; |
| 29 | |
import java.util.List; |
| 30 | |
|
| 31 | |
|
| 32 | 0 | public class LoCategoryRpcGwtServlet extends DataGwtServlet implements LoCategoryRpcService { |
| 33 | |
private LearningObjectiveService loService; |
| 34 | |
|
| 35 | 0 | final static Logger LOG = Logger.getLogger(LoCategoryRpcGwtServlet.class); |
| 36 | |
|
| 37 | |
private static final long serialVersionUID = 1L; |
| 38 | |
|
| 39 | |
public void setLoService(LearningObjectiveService loService) { |
| 40 | 0 | this.loService = loService; |
| 41 | 0 | } |
| 42 | |
|
| 43 | |
|
| 44 | |
|
| 45 | |
|
| 46 | |
|
| 47 | |
|
| 48 | |
@Override |
| 49 | |
public List<LoCategoryTypeInfo> getLoCategoryTypes() { |
| 50 | |
try { |
| 51 | 0 | return loService.getLoCategoryTypes(); |
| 52 | 0 | } catch (Exception e) { |
| 53 | 0 | LOG.error(e); |
| 54 | |
} |
| 55 | 0 | return null; |
| 56 | |
} |
| 57 | |
|
| 58 | |
|
| 59 | |
|
| 60 | |
|
| 61 | |
|
| 62 | |
|
| 63 | |
@Override |
| 64 | |
public LoCategoryTypeInfo getLoCategoryType(String loCategoryTypeKey) { |
| 65 | |
try { |
| 66 | 0 | return loService.getLoCategoryType(loCategoryTypeKey); |
| 67 | |
|
| 68 | 0 | } catch (Exception e) { |
| 69 | 0 | LOG.error(e); |
| 70 | |
} |
| 71 | 0 | return null; |
| 72 | |
} |
| 73 | |
|
| 74 | |
@Override |
| 75 | |
public List<LoCategoryInfo> getLoCategories(String loRepositoryKey) { |
| 76 | |
try { |
| 77 | 0 | return loService.getLoCategories(loRepositoryKey); |
| 78 | |
|
| 79 | 0 | } catch (Exception e) { |
| 80 | 0 | LOG.error(e); |
| 81 | |
} |
| 82 | 0 | return null; |
| 83 | |
} |
| 84 | |
|
| 85 | |
@Override |
| 86 | |
public StatusInfo deleteLoCategory(String loCategoryId) { |
| 87 | |
try { |
| 88 | 0 | return loService.deleteLoCategory(loCategoryId); |
| 89 | 0 | } catch (Exception e) { |
| 90 | 0 | LOG.error(e); |
| 91 | |
} |
| 92 | 0 | return null; |
| 93 | |
} |
| 94 | |
|
| 95 | |
} |