1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | |
|
17 | |
package org.kuali.student.enrollment.class2.courseregistration.service.decorators; |
18 | |
|
19 | |
import java.util.List; |
20 | |
|
21 | |
import org.kuali.rice.core.api.criteria.QueryByCriteria; |
22 | |
|
23 | |
import org.kuali.student.enrollment.courseregistration.service.CourseRegistrationService; |
24 | |
import org.kuali.student.enrollment.courseregistration.dto.CourseRegistrationInfo; |
25 | |
import org.kuali.student.enrollment.courseregistration.dto.ActivityRegistrationInfo; |
26 | |
import org.kuali.student.enrollment.courseregistration.dto.RegistrationRequestInfo; |
27 | |
import org.kuali.student.enrollment.courseregistration.dto.RegistrationRequestItemInfo; |
28 | |
import org.kuali.student.enrollment.courseregistration.dto.RegistrationResponseInfo; |
29 | |
import org.kuali.student.enrollment.courseregistration.dto.CreditLoadInfo; |
30 | |
|
31 | |
import org.kuali.student.enrollment.courseoffering.service.CourseOfferingService; |
32 | |
import org.kuali.student.enrollment.courseoffering.dto.RegistrationGroupInfo; |
33 | |
|
34 | |
import org.kuali.student.r2.common.dto.ContextInfo; |
35 | |
import org.kuali.student.r2.common.dto.StatusInfo; |
36 | |
import org.kuali.student.r2.common.dto.ValidationResultInfo; |
37 | |
|
38 | |
import org.kuali.student.r2.common.exceptions.AlreadyExistsException; |
39 | |
import org.kuali.student.r2.common.exceptions.DataValidationErrorException; |
40 | |
import org.kuali.student.r2.common.exceptions.DependentObjectsExistException; |
41 | |
import org.kuali.student.r2.common.exceptions.DoesNotExistException; |
42 | |
import org.kuali.student.r2.common.exceptions.InvalidParameterException; |
43 | |
import org.kuali.student.r2.common.exceptions.MissingParameterException; |
44 | |
import org.kuali.student.r2.common.exceptions.OperationFailedException; |
45 | |
import org.kuali.student.r2.common.exceptions.PermissionDeniedException; |
46 | |
import org.kuali.student.r2.common.exceptions.ReadOnlyException; |
47 | |
import org.kuali.student.r2.common.exceptions.VersionMismatchException; |
48 | |
|
49 | 0 | public class CourseRegistrationServiceDecorator |
50 | |
implements CourseRegistrationService { |
51 | |
|
52 | |
private CourseRegistrationService nextDecorator; |
53 | |
|
54 | |
public CourseRegistrationService getNextDecorator() { |
55 | 0 | return nextDecorator; |
56 | |
} |
57 | |
|
58 | |
public void setNextDecorator(CourseRegistrationService nextDecorator) { |
59 | 0 | this.nextDecorator = nextDecorator; |
60 | 0 | } |
61 | |
|
62 | |
@Override |
63 | |
public CourseRegistrationInfo getCourseRegistration(String courseRegistrationId, ContextInfo contextInfo) |
64 | |
throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException { |
65 | |
|
66 | 0 | return getNextDecorator().getCourseRegistration(courseRegistrationId, contextInfo); |
67 | |
} |
68 | |
|
69 | |
@Override |
70 | |
public List<CourseRegistrationInfo> getCourseRegistrationsByIds(List<String> courseRegistrationIds, ContextInfo contextInfo) |
71 | |
throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException { |
72 | |
|
73 | 0 | return getNextDecorator().getCourseRegistrationsByIds(courseRegistrationIds, contextInfo); |
74 | |
} |
75 | |
|
76 | |
@Override |
77 | |
public List<String> getCourseRegistrationIdsByType(String courseRegistrationTypeKey,ContextInfo contextInfo) |
78 | |
throws InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException { |
79 | |
|
80 | 0 | return getNextDecorator().getCourseRegistrationIdsByType(courseRegistrationTypeKey, contextInfo); |
81 | |
} |
82 | |
|
83 | |
|
84 | |
@Override |
85 | |
public List<CourseRegistrationInfo> getCourseRegistrationsByStudent(String studentId, ContextInfo contextInfo) |
86 | |
throws InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException { |
87 | |
|
88 | 0 | return getNextDecorator().getCourseRegistrationsByStudent(studentId, contextInfo); |
89 | |
} |
90 | |
|
91 | |
|
92 | |
@Override |
93 | |
public List<CourseRegistrationInfo> getCourseRegistrationsByCourseOffering(String courseOfferingId, ContextInfo contextInfo) |
94 | |
throws InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException { |
95 | |
|
96 | 0 | return getNextDecorator().getCourseRegistrationsByCourseOffering(courseOfferingId, contextInfo); |
97 | |
} |
98 | |
|
99 | |
|
100 | |
@Override |
101 | |
public List<CourseRegistrationInfo> getCourseRegistrationsByStudentAndCourseOffering(String studentId, String courseOfferingId, ContextInfo contextInfo) |
102 | |
throws InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException { |
103 | |
|
104 | 0 | return getNextDecorator().getCourseRegistrationsByStudentAndCourseOffering(studentId, courseOfferingId, contextInfo); |
105 | |
} |
106 | |
|
107 | |
|
108 | |
@Override |
109 | |
public List<CourseRegistrationInfo> getCourseRegistrationsByStudentAndTerm(String studentId, String termId, ContextInfo contextInfo) |
110 | |
throws InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException { |
111 | |
|
112 | 0 | return getNextDecorator().getCourseRegistrationsByStudentAndTerm(studentId, termId, contextInfo); |
113 | |
} |
114 | |
|
115 | |
|
116 | |
@Override |
117 | |
public List<String> searchForCourseRegistrationIds(QueryByCriteria criteria,ContextInfo contextInfo) |
118 | |
throws InvalidParameterException,MissingParameterException, OperationFailedException, PermissionDeniedException { |
119 | |
|
120 | 0 | return getNextDecorator().searchForCourseRegistrationIds(criteria, contextInfo); |
121 | |
} |
122 | |
|
123 | |
|
124 | |
@Override |
125 | |
public List<CourseRegistrationInfo> searchForCourseRegistrations(QueryByCriteria criteria, ContextInfo contextInfo) |
126 | |
throws InvalidParameterException,MissingParameterException, OperationFailedException, PermissionDeniedException { |
127 | |
|
128 | 0 | return getNextDecorator().searchForCourseRegistrations(criteria, contextInfo); |
129 | |
} |
130 | |
|
131 | |
@Override |
132 | |
public ActivityRegistrationInfo getActivityRegistration(String activityRegistrationId, ContextInfo contextInfo) |
133 | |
throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException { |
134 | |
|
135 | 0 | return getNextDecorator().getActivityRegistration(activityRegistrationId, contextInfo); |
136 | |
} |
137 | |
|
138 | |
@Override |
139 | |
public List<ActivityRegistrationInfo> getActivityRegistrationsByIds(List<String> activityRegistrationIds, ContextInfo contextInfo) |
140 | |
throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException { |
141 | |
|
142 | 0 | return getNextDecorator().getActivityRegistrationsByIds(activityRegistrationIds, contextInfo); |
143 | |
} |
144 | |
|
145 | |
@Override |
146 | |
public List<String> getActivityRegistrationIdsByType(String activityRegistrationTypeKey, ContextInfo contextInfo) |
147 | |
throws InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException { |
148 | |
|
149 | 0 | return getNextDecorator().getActivityRegistrationIdsByType(activityRegistrationTypeKey, contextInfo); |
150 | |
} |
151 | |
|
152 | |
@Override |
153 | |
public List<ActivityRegistrationInfo> getActivityRegistrationsForCourseRegistration(String courseRegistrationId, ContextInfo contextInfo) |
154 | |
throws InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException { |
155 | |
|
156 | 0 | return getNextDecorator().getActivityRegistrationsForCourseRegistration(courseRegistrationId, contextInfo); |
157 | |
} |
158 | |
|
159 | |
@Override |
160 | |
public List<ActivityRegistrationInfo> getActivityRegistrationsByStudent(String studentId, ContextInfo contextInfo) |
161 | |
throws InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException { |
162 | |
|
163 | 0 | return getNextDecorator().getActivityRegistrationsByStudent(studentId, contextInfo); |
164 | |
} |
165 | |
|
166 | |
@Override |
167 | |
public List<ActivityRegistrationInfo> getActivityRegistrationsByActivityOffering(String courseOfferingId, ContextInfo contextInfo) |
168 | |
throws InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException { |
169 | |
|
170 | 0 | return getNextDecorator().getActivityRegistrationsByActivityOffering(courseOfferingId, contextInfo); |
171 | |
} |
172 | |
|
173 | |
@Override |
174 | |
public List<ActivityRegistrationInfo> getActivityRegistrationsByStudentAndActivityOffering(String studentId, String courseOfferingId, ContextInfo contextInfo) |
175 | |
throws InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException { |
176 | |
|
177 | 0 | return getNextDecorator().getActivityRegistrationsByStudentAndActivityOffering(studentId, courseOfferingId, contextInfo); |
178 | |
} |
179 | |
|
180 | |
@Override |
181 | |
public List<ActivityRegistrationInfo> getActivityRegistrationsByStudentAndTerm(String studentId, String termId, ContextInfo contextInfo) |
182 | |
throws InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException { |
183 | |
|
184 | 0 | return getNextDecorator().getActivityRegistrationsByStudentAndTerm(studentId, termId, contextInfo); |
185 | |
} |
186 | |
|
187 | |
@Override |
188 | |
public List<String> searchForActivityRegistrationIds(QueryByCriteria criteria, ContextInfo contextInfo) |
189 | |
throws InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException { |
190 | |
|
191 | 0 | return getNextDecorator().searchForActivityRegistrationIds(criteria, contextInfo); |
192 | |
} |
193 | |
|
194 | |
|
195 | |
@Override |
196 | |
public List<ActivityRegistrationInfo> searchForActivityRegistrations(QueryByCriteria criteria, ContextInfo contextInfo) |
197 | |
throws InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException { |
198 | |
|
199 | 0 | return getNextDecorator().searchForActivityRegistrations(criteria, contextInfo); |
200 | |
} |
201 | |
|
202 | |
@Override |
203 | |
public RegistrationRequestInfo getRegistrationRequest(String registrationRequestId, ContextInfo contextInfo) |
204 | |
throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException { |
205 | |
|
206 | 0 | return getNextDecorator().getRegistrationRequest(registrationRequestId, contextInfo); |
207 | |
} |
208 | |
|
209 | |
@Override |
210 | |
public List<RegistrationRequestInfo> getRegistrationRequestsByIds(List<String> registrationRequestIds, ContextInfo contextInfo) |
211 | |
throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException { |
212 | |
|
213 | 0 | return getNextDecorator().getRegistrationRequestsByIds(registrationRequestIds, contextInfo); |
214 | |
} |
215 | |
|
216 | |
@Override |
217 | |
public List<String> getRegistrationRequestIdsByType(String registrationRequestTypeKey, ContextInfo contextInfo) |
218 | |
throws InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException { |
219 | |
|
220 | 0 | return getNextDecorator().getRegistrationRequestIdsByType(registrationRequestTypeKey, contextInfo); |
221 | |
} |
222 | |
|
223 | |
@Override |
224 | |
public List<RegistrationRequestInfo> getRegistrationRequestsByRequestor(String personId, ContextInfo contextInfo) |
225 | |
throws InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException { |
226 | |
|
227 | 0 | return getNextDecorator().getRegistrationRequestsByRequestor(personId, contextInfo); |
228 | |
} |
229 | |
|
230 | |
@Override |
231 | |
public List<RegistrationRequestInfo> getUnsubmittedRegistrationRequestsByRequestorAndTerm(String requestorId, String termId, ContextInfo contextInfo) |
232 | |
throws InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException { |
233 | |
|
234 | 0 | return getNextDecorator().getUnsubmittedRegistrationRequestsByRequestorAndTerm(requestorId, termId, contextInfo); |
235 | |
} |
236 | |
|
237 | |
@Override |
238 | |
public List<String> searchForRegistrationRequestIds(QueryByCriteria criteria, ContextInfo contextInfo) |
239 | |
throws InvalidParameterException,MissingParameterException, OperationFailedException, PermissionDeniedException { |
240 | |
|
241 | 0 | return getNextDecorator().searchForRegistrationRequestIds(criteria, contextInfo); |
242 | |
} |
243 | |
|
244 | |
@Override |
245 | |
public List<RegistrationRequestInfo> searchForRegistrationRequests(QueryByCriteria criteria, ContextInfo contextInfo) |
246 | |
throws InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException { |
247 | |
|
248 | 0 | return getNextDecorator().searchForRegistrationRequests(criteria, contextInfo); |
249 | |
} |
250 | |
|
251 | |
@Override |
252 | |
public List<ValidationResultInfo> validateRegistrationRequest(String validationTypeKey, String registrationRequestTypeKey, RegistrationRequestInfo registrationRequestInfo, ContextInfo contextInfo) |
253 | |
throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException { |
254 | |
|
255 | 0 | return getNextDecorator().validateRegistrationRequest(validationTypeKey, registrationRequestTypeKey, registrationRequestInfo, contextInfo); |
256 | |
} |
257 | |
|
258 | |
@Override |
259 | |
public RegistrationRequestInfo createRegistrationRequest(String registrationRequestTypeKey, RegistrationRequestInfo registrationRequestInfo, ContextInfo contextInfo) |
260 | |
throws DataValidationErrorException, DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException, ReadOnlyException { |
261 | |
|
262 | 0 | return getNextDecorator().createRegistrationRequest(registrationRequestTypeKey, registrationRequestInfo, contextInfo); |
263 | |
} |
264 | |
|
265 | |
@Override |
266 | |
public RegistrationRequestInfo createRegistrationRequestFromExisting(String registrationRequestId, ContextInfo contextInfo) |
267 | |
throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException { |
268 | |
|
269 | 0 | return getNextDecorator().createRegistrationRequestFromExisting(registrationRequestId, contextInfo); |
270 | |
} |
271 | |
|
272 | |
@Override |
273 | |
public RegistrationRequestInfo updateRegistrationRequest(String registrationRequestId, RegistrationRequestInfo registrationRequestInfo, ContextInfo contextInfo) |
274 | |
throws DataValidationErrorException, DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException, ReadOnlyException, VersionMismatchException { |
275 | |
|
276 | 0 | return getNextDecorator().updateRegistrationRequest(registrationRequestId, registrationRequestInfo, contextInfo); |
277 | |
} |
278 | |
|
279 | |
@Override |
280 | |
public StatusInfo deleteRegistrationRequest(String registrationRequestId, ContextInfo contextInfo) |
281 | |
throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException { |
282 | |
|
283 | 0 | return getNextDecorator().deleteRegistrationRequest(registrationRequestId, contextInfo); |
284 | |
} |
285 | |
|
286 | |
@Override |
287 | |
public List<ValidationResultInfo> verifyRegistrationRequestForSubmission(String registrationRequestId, ContextInfo contextInfo) |
288 | |
throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException { |
289 | |
|
290 | 0 | return getNextDecorator().verifyRegistrationRequestForSubmission(registrationRequestId, contextInfo); |
291 | |
} |
292 | |
|
293 | |
@Override |
294 | |
public RegistrationResponseInfo submitRegistrationRequest(String registrationRequestId, ContextInfo contextInfo) |
295 | |
throws AlreadyExistsException, DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException { |
296 | |
|
297 | 0 | return getNextDecorator().submitRegistrationRequest(registrationRequestId, contextInfo); |
298 | |
} |
299 | |
|
300 | |
@Override |
301 | |
public List<RegistrationRequestItemInfo> getRegistrationRequestItemsForCourseRegistration(String courseRegistrationId, ContextInfo contextInfo) |
302 | |
throws InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException { |
303 | |
|
304 | 0 | return getNextDecorator().getRegistrationRequestItemsForCourseRegistration(courseRegistrationId, contextInfo); |
305 | |
} |
306 | |
|
307 | |
@Override |
308 | |
public List<RegistrationRequestItemInfo> getRegistrationRequestItemsByCourseOfferingAndStudent(String courseOfferingId, String studentId, ContextInfo contextInfo) |
309 | |
throws InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException { |
310 | |
|
311 | 0 | return getNextDecorator().getRegistrationRequestItemsByCourseOfferingAndStudent(courseOfferingId, studentId, contextInfo); |
312 | |
} |
313 | |
|
314 | |
@Override |
315 | |
public List<ValidationResultInfo> checkStudentEligibility(String studentId, ContextInfo contextInfo) |
316 | |
throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException { |
317 | |
|
318 | 0 | return getNextDecorator().checkStudentEligibility(studentId, contextInfo); |
319 | |
} |
320 | |
|
321 | |
@Override |
322 | |
public List<ValidationResultInfo> checkStudentEligibilityForTerm(String studentId, String termId, ContextInfo contextInfo) |
323 | |
throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException { |
324 | |
|
325 | 0 | return getNextDecorator().checkStudentEligibilityForTerm(studentId, termId, contextInfo); |
326 | |
} |
327 | |
|
328 | |
@Override |
329 | |
public List<ValidationResultInfo> checkStudentEligibiltyForCourseOffering(String studentId, String courseOfferingId, ContextInfo contextInfo) |
330 | |
throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException { |
331 | |
|
332 | 0 | return getNextDecorator().checkStudentEligibiltyForCourseOffering(studentId, courseOfferingId, contextInfo); |
333 | |
} |
334 | |
|
335 | |
@Override |
336 | |
public List<ValidationResultInfo> checkStudentEligibiltyForRegistrationGroup(String studentId, String registrationGroupId, ContextInfo contextInfo) |
337 | |
throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException { |
338 | |
|
339 | 0 | return getNextDecorator().checkStudentEligibiltyForRegistrationGroup(studentId, registrationGroupId, contextInfo); |
340 | |
} |
341 | |
|
342 | |
@Override |
343 | |
public List<RegistrationGroupInfo> getEligibleRegistrationGroupsForStudentInCourseOffering(String studentId, String courseOfferingId, ContextInfo contextInfo) |
344 | |
throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException { |
345 | |
|
346 | 0 | return getNextDecorator().getEligibleRegistrationGroupsForStudentInCourseOffering(studentId, courseOfferingId, contextInfo); |
347 | |
|
348 | |
} |
349 | |
|
350 | |
@Override |
351 | |
public List<CreditLoadInfo> calculateCreditLoadForRegistrationRequest(String registrationRequestId, ContextInfo contextInfo) |
352 | |
throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException { |
353 | |
|
354 | 0 | return getNextDecorator().calculateCreditLoadForRegistrationRequest(registrationRequestId, contextInfo); |
355 | |
} |
356 | |
} |