Coverage Report - org.kuali.student.lum.lu.ui.course.server.gwt.CreditCourseProposalRpcGwtServlet
 
Classes in this File Line Coverage Branch Coverage Complexity
CreditCourseProposalRpcGwtServlet
0%
0/20
N/A
2.273
 
 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  
 import java.util.Map;
 20  
 
 21  
 import org.apache.log4j.Logger;
 22  
 import org.kuali.student.common.dto.StatusInfo;
 23  
 import org.kuali.student.common.ui.client.service.DataSaveResult;
 24  
 import org.kuali.student.common.ui.server.gwt.DataGwtServlet;
 25  
 import org.kuali.student.core.statement.dto.StatementTreeViewInfo;
 26  
 import org.kuali.student.lum.lu.ui.course.client.requirements.CourseRequirementsDataModel;
 27  
 import org.kuali.student.lum.lu.ui.course.client.service.CreditCourseProposalRpcService;
 28  
 
 29  0
 public class CreditCourseProposalRpcGwtServlet extends DataGwtServlet implements
 30  
         CreditCourseProposalRpcService {
 31  
 
 32  0
         final static Logger LOG = Logger.getLogger(CreditCourseProposalRpcGwtServlet.class);
 33  
 
 34  
         private static final long serialVersionUID = 1L;
 35  
         private CopyCourseServiceImpl copyCourseService;
 36  
         
 37  
         @Override
 38  
         public DataSaveResult createCopyCourse(String originalCluId)
 39  
                         throws Exception {
 40  
                 try {
 41  0
                         return copyCourseService.createCopyCourse(originalCluId);
 42  0
                 } catch (Exception e) {
 43  0
                         LOG.error("Error copying course with id:" + originalCluId, e);
 44  0
                         throw e;
 45  
                 }
 46  
         }
 47  
 
 48  
         @Override
 49  
         public DataSaveResult createCopyCourseProposal(String originalProposalId)
 50  
                         throws Exception {
 51  
                 try {
 52  0
                         return copyCourseService.createCopyCourseProposal(originalProposalId);
 53  0
                 } catch (Exception e) {
 54  0
                         LOG.error("Error copying proposal with id:" + originalProposalId, e);
 55  0
                         throw e;
 56  
                 }
 57  
 
 58  
         }
 59  
         
 60  
     @Override
 61  
     public List<StatementTreeViewInfo> getCourseStatements(String courseId, String nlUsageTypeKey, String language) throws Exception {
 62  0
             throw new UnsupportedOperationException("This method is not implemented.");
 63  
     }
 64  
 
 65  
     @Override
 66  
     public Map<Integer, StatementTreeViewInfo> storeCourseStatements(String courseId, String courseState, Map<Integer, CourseRequirementsDataModel.requirementState> states, Map<Integer, StatementTreeViewInfo> rules) throws Exception {
 67  0
             throw new UnsupportedOperationException("This method is not implemented.");
 68  
     }
 69  
 
 70  
     @Override
 71  
     public StatementTreeViewInfo createCourseStatement(String courseId, String courseState, StatementTreeViewInfo statementTreeViewInfo) throws Exception {
 72  0
             throw new UnsupportedOperationException("This method is not implemented.");
 73  
     }
 74  
 
 75  
     @Override
 76  
     public StatusInfo deleteCourseStatement(String courseId, StatementTreeViewInfo statementTreeViewInfo) throws Exception {
 77  0
             throw new UnsupportedOperationException("This method is not implemented.");
 78  
     }
 79  
     
 80  
     @Override
 81  
     public StatementTreeViewInfo updateCourseStatement(String courseId, String courseState, StatementTreeViewInfo statementTreeViewInfo) throws Exception {
 82  0
             throw new UnsupportedOperationException("This method is not implemented.");
 83  
     }
 84  
     
 85  
     @Override
 86  
     public StatusInfo changeState(String courseId, String newState) throws Exception {
 87  0
             throw new UnsupportedOperationException("This method is not implemented.");
 88  
     }
 89  
     
 90  
     public StatusInfo changeState(String courseId, String newState, String prevEndTerm) throws Exception {
 91  0
             throw new UnsupportedOperationException("This method is not implemented.");
 92  
     }
 93  
         
 94  
     @Override
 95  
         public Boolean isLatestVersion(String versionIndId, Long versionSequenceNumber) throws Exception {
 96  0
             throw new UnsupportedOperationException("This method is not implemented.");
 97  
         }
 98  
 
 99  
         public void setCopyCourseService(CopyCourseServiceImpl copyCourseService) {
 100  0
                 this.copyCourseService = copyCourseService;
 101  0
         }
 102  
 
 103  
 }