View Javadoc

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