Coverage Report - org.kuali.student.lum.lu.ui.course.server.gwt.LoCategoryRpcGwtServlet
 
Classes in this File Line Coverage Branch Coverage Complexity
LoCategoryRpcGwtServlet
0%
0/20
N/A
2.6
 
 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  
 
 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  
      * This overridden method ...
 45  
      *
 46  
      * @see org.kuali.student.lum.common.client.lo.rpc.LoCategoryRpcService#getLoCategoryTypes()
 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  
      * This overridden method ...
 60  
      *
 61  
      * @see org.kuali.student.lum.common.client.lo.rpc.LoCategoryRpcService#getLoCategoryType(java.lang.String)
 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  
 }