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 import java.util.Map;
20
21 import org.apache.log4j.Logger;
22 import org.kuali.student.common.ui.client.service.DataSaveResult;
23 import org.kuali.student.common.ui.server.gwt.DataGwtServlet;
24 import org.kuali.student.lum.lu.ui.course.client.requirements.CourseRequirementsDataModel;
25 import org.kuali.student.lum.lu.ui.course.client.service.CreditCourseProposalRpcService;
26 import org.kuali.student.r1.core.statement.dto.StatementTreeViewInfo;
27 import org.kuali.student.r2.common.dto.StatusInfo;
28 import org.kuali.student.r2.common.util.ContextUtils;
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 @Override
39 public DataSaveResult createCopyCourse(String originalCluId)
40 throws Exception {
41 try {
42 return copyCourseService.createCopyCourse(originalCluId, ContextUtils.getContextInfo());
43 } catch (Exception e) {
44 LOG.error("Error copying course with id:" + originalCluId, e);
45 throw e;
46 }
47 }
48
49 @Override
50 public DataSaveResult createCopyCourseProposal(String originalProposalId, String documentType)
51 throws Exception {
52 try {
53 return copyCourseService.createCopyCourseProposal(originalProposalId, documentType, ContextUtils.getContextInfo());
54 } catch (Exception e) {
55 LOG.error("Error copying proposal with id:" + originalProposalId, e);
56 throw e;
57 }
58
59 }
60
61 @Override
62 public List<StatementTreeViewInfo> getCourseStatements(String courseId, String nlUsageTypeKey, String language) throws Exception {
63 throw new UnsupportedOperationException("This method is not implemented.");
64 }
65
66 @Override
67 public Map<Integer, StatementTreeViewInfo> storeCourseStatements(String courseId, String courseState, Map<Integer, CourseRequirementsDataModel.requirementState> states,
68 Map<Integer, StatementTreeViewInfo> rules) throws Exception {
69 throw new UnsupportedOperationException("This method is not implemented.");
70 }
71
72 @Override
73 public StatementTreeViewInfo createCourseStatement(String courseId, String courseState, StatementTreeViewInfo statementTreeViewInfo) throws Exception {
74 throw new UnsupportedOperationException("This method is not implemented.");
75 }
76
77 @Override
78 public StatusInfo deleteCourseStatement(String courseId, StatementTreeViewInfo statementTreeViewInfo) throws Exception {
79 throw new UnsupportedOperationException("This method is not implemented.");
80 }
81
82 @Override
83 public StatementTreeViewInfo updateCourseStatement(String courseId, String courseState, StatementTreeViewInfo statementTreeViewInfo) throws Exception {
84 throw new UnsupportedOperationException("This method is not implemented.");
85 }
86
87 @Override
88 public StatusInfo changeState(String courseId, String newState) throws Exception {
89 throw new UnsupportedOperationException("This method is not implemented.");
90 }
91
92 public StatusInfo changeState(String courseId, String newState, String prevEndTerm) throws Exception {
93 throw new UnsupportedOperationException("This method is not implemented.");
94 }
95
96 @Override
97 public Boolean isLatestVersion(String versionIndId, Long versionSequenceNumber) throws Exception {
98 throw new UnsupportedOperationException("This method is not implemented.");
99 }
100
101 @Override
102 public Boolean isAnyOtherRetireProposalsInWorkflow(String courseCluId) {
103 throw new UnsupportedOperationException("This method is not implemented.");
104 }
105
106 public void setCopyCourseService(CopyCourseServiceImpl copyCourseService) {
107 this.copyCourseService = copyCourseService;
108 }
109
110 }