View Javadoc

1   /**
2    * Copyright 2012 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   * Created by Charles on 9/18/12
16   */
17  package org.kuali.student.enrollment.class2.courseoffering.service.impl;
18  
19  import org.kuali.rice.core.api.criteria.QueryByCriteria;
20  import org.kuali.student.enrollment.courseoffering.dto.*;
21  import org.kuali.student.enrollment.courseoffering.service.CourseOfferingService;
22  import org.kuali.student.enrollment.courseofferingset.dto.SocRolloverResultItemInfo;
23  import org.kuali.student.r2.common.dto.BulkStatusInfo;
24  import org.kuali.student.r2.common.dto.ContextInfo;
25  import org.kuali.student.r2.common.dto.StatusInfo;
26  import org.kuali.student.r2.common.dto.TimeOfDayInfo;
27  import org.kuali.student.r2.common.dto.ValidationResultInfo;
28  import org.kuali.student.r2.common.exceptions.*;
29  import org.kuali.student.r2.common.util.constants.LuiServiceConstants;
30  import org.kuali.student.r2.core.class1.type.dto.TypeInfo;
31  import org.kuali.student.r2.core.scheduling.dto.TimeSlotInfo;
32  
33  import javax.jws.WebParam;
34  import java.util.ArrayList;
35  import java.util.HashMap;
36  import java.util.List;
37  import java.util.Map;
38  
39  /**
40   * This class provides a fake implementation of the Course Offering Service to test UMDRegGroupCodeGenerator
41   *
42   * @author Kuali Student Team
43   */
44  class FakeCourseOfferingService implements CourseOfferingService {
45      Map<String, List<RegistrationGroupInfo>> foIdsToRegGroups = new HashMap<String, List<RegistrationGroupInfo>>();
46      CourseOfferingInfo coInfo;
47      List<FormatOfferingInfo> foInfoList = new ArrayList<FormatOfferingInfo>();
48  
49      private static RegistrationGroupInfo createRegGroup(String regGroupCode) {
50          RegistrationGroupInfo info = new RegistrationGroupInfo();
51          info.setName(regGroupCode);
52          return info;
53      }
54  
55      public FakeCourseOfferingService() {
56          // Create a co
57          String coId = "CO";
58          String foId1 = "fo0100", foId2 = "fo0300", foId3 = "newFo";
59          List<String> aoTypeKeys = new ArrayList<String>();
60          aoTypeKeys.add(LuiServiceConstants.LAB_ACTIVITY_OFFERING_TYPE_KEY);
61          aoTypeKeys.add(LuiServiceConstants.LECTURE_ACTIVITY_OFFERING_TYPE_KEY);
62          coInfo = new CourseOfferingInfo();
63          coInfo.setId(coId);
64          // Create two fos
65          FormatOfferingInfo fo1 = new FormatOfferingInfo();
66          fo1.setCourseOfferingId(coId);
67          fo1.setId(foId1);
68          fo1.setActivityOfferingTypeKeys(aoTypeKeys);
69          FormatOfferingInfo fo2 = new FormatOfferingInfo();
70          fo2.setCourseOfferingId(coId);
71          fo2.setId(foId2);
72          fo2.setActivityOfferingTypeKeys(aoTypeKeys);
73          FormatOfferingInfo fo3 = new FormatOfferingInfo();
74          fo3.setCourseOfferingId(coId);
75          fo3.setId(foId3);
76          fo3.setActivityOfferingTypeKeys(aoTypeKeys);
77          foInfoList.add(fo1);
78          foInfoList.add(fo2);
79          foInfoList.add(fo3);
80  
81          List<RegistrationGroupInfo> rg0100 = new ArrayList<RegistrationGroupInfo>();
82          List<RegistrationGroupInfo> rg0300 = new ArrayList<RegistrationGroupInfo>();
83          foIdsToRegGroups.put(foId1, rg0100);
84          foIdsToRegGroups.put(foId2, rg0300);
85  
86          // Create a 01-- reg group
87          rg0100.add(createRegGroup("0101"));
88          rg0100.add(createRegGroup("0102"));
89          rg0100.add(createRegGroup("0103"));
90  
91          // Create a 03-- reg group
92          rg0300.add(createRegGroup("0301"));
93          rg0300.add(createRegGroup("0302"));
94      }
95  
96  
97      @Override
98      public List<String> getActivityOfferingClustersIdsByFormatOffering(
99              String formatOfferingId,
100             ContextInfo contextInfo)
101             throws DoesNotExistException, InvalidParameterException,
102             MissingParameterException, OperationFailedException,
103             PermissionDeniedException {
104         // TODO Auto-generated method stub
105         return null;
106     }
107     
108     
109 
110     @Override
111     public List<ActivityOfferingInfo> getActivityOfferingsForSeatPoolDefinition(
112             String seatPoolDefinitionId,
113             ContextInfo context)
114             throws DoesNotExistException, InvalidParameterException,
115             MissingParameterException, OperationFailedException,
116             PermissionDeniedException {
117         // TODO Auto-generated method stub
118         return null;
119     }
120 
121     @Override
122     public CourseOfferingDisplayInfo getCourseOfferingDisplay(String courseOfferingId, ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
123         throw new RuntimeException("Not implemented");
124     }
125 
126     @Override
127     public List<CourseOfferingDisplayInfo> getCourseOfferingDisplaysByIds(List<String> courseOfferingIds, ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
128         throw new RuntimeException("Not implemented");
129     }
130 
131     @Override
132     public ActivityOfferingDisplayInfo getActivityOfferingDisplay(String activityOfferingId, ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
133         throw new RuntimeException("Not implemented");
134     }
135 
136 
137     @Override
138     public List<ActivityOfferingInfo> getActivityOfferingsByCluster(
139             String activityOfferingClusterId,
140             ContextInfo contextInfo)
141             throws DoesNotExistException, InvalidParameterException,
142             MissingParameterException, OperationFailedException,
143             PermissionDeniedException {
144         // TODO Auto-generated method stub
145         return null;
146     }
147 
148     @Override
149     public List<RegistrationGroupInfo> getRegistrationGroupsByActivityOfferingCluster(
150             String activityOfferingClusterId,
151             ContextInfo contextInfo)
152             throws DoesNotExistException, InvalidParameterException,
153             MissingParameterException, OperationFailedException,
154             PermissionDeniedException {
155         // TODO Auto-generated method stub
156         return null;
157     }
158 
159     @Override
160     public List<ActivityOfferingDisplayInfo> getActivityOfferingDisplaysByIds(List<String> activityOfferingIds, ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
161         throw new RuntimeException("Not implemented");
162     }
163 
164     @Override
165     public List<ActivityOfferingDisplayInfo> getActivityOfferingDisplaysForCourseOffering(String courseOfferingId, ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
166         throw new RuntimeException("Not implemented");
167     }
168 
169     @Override
170     public TypeInfo getCourseOfferingType(String courseOfferingTypeKey, ContextInfo context) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
171         throw new RuntimeException("Not implemented");
172     }
173 
174     @Override
175     public List<TypeInfo> getCourseOfferingTypes(ContextInfo context) throws InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
176         throw new RuntimeException("Not implemented");
177     }
178 
179     @Override
180     public List<TypeInfo> getInstructorTypesForCourseOfferingType(String courseOfferingTypeKey, ContextInfo context) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
181         throw new RuntimeException("Not implemented");
182     }
183 
184     @Override
185     public CourseOfferingInfo getCourseOffering(String courseOfferingId, ContextInfo context) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
186         return coInfo;
187     }
188 
189     @Override
190     public List<CourseOfferingInfo> getCourseOfferingsByIds(List<String> courseOfferingIds, ContextInfo context) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
191         throw new RuntimeException("Not implemented");
192     }
193 
194     @Override
195     public List<CourseOfferingInfo> getCourseOfferingsByCourse(String courseId, ContextInfo context) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
196         throw new RuntimeException("Not implemented");
197     }
198 
199     @Override
200     public List<CourseOfferingInfo> getCourseOfferingsByCourseAndTerm(String courseId, String termId, ContextInfo context) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
201         throw new RuntimeException("Not implemented");
202     }
203 
204     @Override
205     public List<String> getCourseOfferingIdsByTerm(String termId, Boolean useIncludedTerm, ContextInfo context) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
206         throw new RuntimeException("Not implemented");
207     }
208 
209     @Override
210     public List<String> getCourseOfferingIdsByTermAndSubjectArea(String termId, String subjectArea, ContextInfo context) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
211         throw new RuntimeException("Not implemented");
212     }
213 
214     @Override
215     public List<CourseOfferingInfo> getCourseOfferingsByTermAndInstructor(String termId, String instructorId, ContextInfo context) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
216         throw new RuntimeException("Not implemented");
217     }
218 
219     @Override
220     public List<String> getCourseOfferingIdsByTermAndUnitsContentOwner(String termId, String unitsContentOwnerId, ContextInfo context) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
221         throw new RuntimeException("Not implemented");
222     }
223 
224     @Override
225     public List<String> getCourseOfferingIdsByType(String typeKey, ContextInfo context) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
226         throw new RuntimeException("Not implemented");
227     }
228 
229     @Override
230     public List<String> getValidCanonicalCourseToCourseOfferingOptionKeys(ContextInfo context) throws InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException, ReadOnlyException {
231         throw new RuntimeException("Not implemented");
232     }
233 
234     @Override
235     public List<String> getValidRolloverOptionKeys(ContextInfo context) throws InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException, ReadOnlyException {
236         throw new RuntimeException("Not implemented");
237     }
238 
239     @Override
240     public CourseOfferingInfo createCourseOffering(String courseId, String termId, String courseOfferingTypeKey, CourseOfferingInfo courseOfferingInfo, List<String> optionKeys, ContextInfo context) throws DoesNotExistException, DataValidationErrorException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException, ReadOnlyException {
241         throw new RuntimeException("Not implemented");
242     }
243 
244     @Override
245     public SocRolloverResultItemInfo rolloverCourseOffering(String sourceCourseOfferingId, String targetTermId, List<String> optionKeys, ContextInfo context) throws AlreadyExistsException, DoesNotExistException, DataValidationErrorException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException, ReadOnlyException {
246         throw new RuntimeException("Not implemented");
247     }
248 
249     @Override
250     public CourseOfferingInfo updateCourseOffering(String courseOfferingId, CourseOfferingInfo courseOfferingInfo, ContextInfo context) throws DataValidationErrorException, DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException, ReadOnlyException, VersionMismatchException {
251         throw new RuntimeException("Not implemented");
252     }
253 
254     @Override
255     public CourseOfferingInfo updateCourseOfferingFromCanonical(String courseOfferingId, List<String> optionKeys, ContextInfo context) throws DataValidationErrorException, DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException, VersionMismatchException {
256         throw new RuntimeException("Not implemented");
257     }
258 
259     @Override
260     public StatusInfo deleteCourseOffering(String courseOfferingId, ContextInfo context) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException, DependentObjectsExistException {
261         throw new RuntimeException("Not implemented");
262     }
263 
264     @Override
265     public StatusInfo deleteCourseOfferingCascaded(String courseOfferingId, ContextInfo context) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
266         throw new RuntimeException("Not implemented");
267     }
268 
269     @Override
270     public List<ValidationResultInfo> validateCourseOffering(String validationType, CourseOfferingInfo courseOfferingInfo, ContextInfo context) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException {
271         throw new RuntimeException("Not implemented");
272     }
273 
274     @Override
275     public List<ValidationResultInfo> validateCourseOfferingFromCanonical(CourseOfferingInfo courseOfferingInfo, List<String> optionKeys, ContextInfo context) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException {
276         throw new RuntimeException("Not implemented");
277     }
278 
279     @Override
280     public List<BulkStatusInfo> generateRegistrationGroupsForFormatOffering(String formatOfferingId, ContextInfo context) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException, DataValidationErrorException {
281         throw new RuntimeException("Not implemented");
282     }
283 
284     @Override
285     public FormatOfferingInfo getFormatOffering(String formatOfferingId, ContextInfo context) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
286         return foInfoList.get(2);
287     }
288 
289     @Override
290     public List<FormatOfferingInfo> getFormatOfferingsByCourseOffering(String courseOfferingId, ContextInfo context) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
291         return foInfoList;
292     }
293 
294     @Override
295     public FormatOfferingInfo createFormatOffering(String courseOfferingId, String formatId, String formatOfferingType, FormatOfferingInfo formatOfferingInfo, ContextInfo context) throws DoesNotExistException, DataValidationErrorException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException, ReadOnlyException {
296         throw new RuntimeException("Not implemented");
297     }
298 
299     @Override
300     public FormatOfferingInfo updateFormatOffering(String formatOfferingId, FormatOfferingInfo formatOfferingInfo, ContextInfo context) throws DataValidationErrorException, DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException, ReadOnlyException, VersionMismatchException {
301         throw new RuntimeException("Not implemented");
302     }
303 
304     @Override
305     public List<ValidationResultInfo> validateFormatOffering(String validationType, FormatOfferingInfo formatOfferingInfo, ContextInfo context) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException {
306         throw new RuntimeException("Not implemented");
307     }
308 
309     @Override
310     public StatusInfo deleteFormatOffering(String formatOfferingId, ContextInfo context) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException, DependentObjectsExistException {
311         throw new RuntimeException("Not implemented");
312     }
313 
314     @Override
315     public StatusInfo deleteFormatOfferingCascaded(String formatOfferingId, ContextInfo context) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
316         throw new RuntimeException("Not implemented");
317     }
318 
319     @Override
320     public TypeInfo getActivityOfferingType(String activityOfferingTypeKey, ContextInfo context) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
321         throw new RuntimeException("Not implemented");
322     }
323 
324     @Override
325     public List<TypeInfo> getActivityOfferingTypes(ContextInfo context) throws InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
326         throw new RuntimeException("Not implemented");
327     }
328 
329     @Override
330     public List<TypeInfo> getActivityOfferingTypesForActivityType(String activityTypeKey, ContextInfo context) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
331         throw new RuntimeException("Not implemented");
332     }
333 
334     @Override
335     public List<TypeInfo> getInstructorTypesForActivityOfferingType(String activityOfferingTypeKey, ContextInfo context) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
336         throw new RuntimeException("Not implemented");
337     }
338 
339     @Override
340     public ActivityOfferingInfo getActivityOffering(String activityOfferingId, ContextInfo context) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
341         throw new RuntimeException("Not implemented");
342     }
343 
344     @Override
345     public List<ActivityOfferingInfo> getActivityOfferingsByIds(List<String> activityOfferingIds, ContextInfo context) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
346         throw new RuntimeException("Not implemented");
347     }
348 
349     @Override
350     public List<ActivityOfferingInfo> getActivityOfferingsByCourseOffering(String courseOfferingId, ContextInfo context) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
351         throw new RuntimeException("Not implemented");
352     }
353 
354     @Override
355     public List<ActivityOfferingInfo> getActivityOfferingsByFormatOffering(String formatOfferingId, ContextInfo context) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
356         throw new RuntimeException("Not implemented");
357     }
358 
359     @Override
360     public List<ActivityOfferingInfo> getActivityOfferingsWithoutClusterByFormatOffering(String formatOfferingId, ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
361         throw new RuntimeException("Not implemented");
362     }
363 
364     @Override
365     public List<ActivityOfferingInfo> getActivityOfferingsByFormatOfferingWithoutRegGroup(String formatOfferingId, ContextInfo context) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
366         throw new RuntimeException("Not implemented");
367     }
368 
369     @Override
370     public List<String> getAllowedTimeSlotIdsForActivityOffering(@WebParam(name = "activityOfferingId") String activityOfferingId, @WebParam(name = "contextInfo") ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
371         throw new RuntimeException("Not implemented");
372     }
373 
374     @Override
375     public List<TimeSlotInfo> getAllowedTimeSlotsForActivityOffering(@WebParam(name = "activityOfferingId") String activityOfferingId, @WebParam(name = "contextInfo") ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
376         throw new RuntimeException("Not implemented");
377     }
378 
379     @Override
380     public List<TimeSlotInfo> getAllowedTimeSlotsByDaysAndStartTimeForActivityOffering(@WebParam(name = "activityOfferingId") String activityOfferingId, @WebParam(name = "daysOfWeek") List<Integer> daysOfWeek, @WebParam(name = "startTime") TimeOfDayInfo startTime, @WebParam(name = "contextInfo") ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
381         throw new RuntimeException("Not implemented");
382     }
383 
384     @Override
385     public ActivityOfferingInfo createActivityOffering(String formatOfferingId, String activityId, String activityOfferingTypeKey, ActivityOfferingInfo activityOfferingInfo, ContextInfo context) throws DoesNotExistException, DataValidationErrorException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException, ReadOnlyException {
386         throw new RuntimeException("Not implemented");
387     }
388 
389     @Override
390     public ActivityOfferingInfo copyActivityOffering(String activityOfferingId, ContextInfo context) throws DoesNotExistException, DataValidationErrorException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException, ReadOnlyException {
391         throw new RuntimeException("Not implemented");
392     }
393 
394     @Override
395     public List<ActivityOfferingInfo> generateActivityOfferings(String formatOfferingId, String activityOfferingType, Integer quantity, ContextInfo context) throws InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
396         throw new RuntimeException("Not implemented");
397     }
398 
399     @Override
400     public ActivityOfferingInfo updateActivityOffering(String activityOfferingId, ActivityOfferingInfo activityOfferingInfo, ContextInfo context) throws DataValidationErrorException, DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException, VersionMismatchException, ReadOnlyException {
401         throw new RuntimeException("Not implemented");
402     }
403 
404     @Override
405     public StatusInfo deleteActivityOffering(String activityOfferingId, ContextInfo context) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException, DependentObjectsExistException {
406         throw new RuntimeException("Not implemented");
407     }
408 
409     @Override
410     public StatusInfo deleteActivityOfferingCascaded(String activityOfferingId, String formatOfferingId, ContextInfo context) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
411         throw new RuntimeException("Not implemented");
412     }
413 
414     @Override
415     public List<ValidationResultInfo> validateActivityOffering(String validationType, ActivityOfferingInfo activityOfferingInfo, ContextInfo context) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException {
416         throw new RuntimeException("Not implemented");
417     }
418 
419     @Override
420     public Float calculateInClassContactHoursForTerm(String activityOfferingId, ContextInfo context) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
421         throw new RuntimeException("Not implemented");
422     }
423 
424     @Override
425     public Float calculateOutofClassContactHoursForTerm(String activityOfferingId, ContextInfo context) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
426         throw new RuntimeException("Not implemented");
427     }
428 
429     @Override
430     public Float calculateTotalContactHoursForTerm(String activityOfferingId, ContextInfo context) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
431         throw new RuntimeException("Not implemented");
432     }
433 
434     @Override
435     public RegistrationGroupInfo getRegistrationGroup(String registrationGroupId, ContextInfo context) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
436         throw new RuntimeException("Not implemented");
437     }
438 
439     @Override
440     public List<RegistrationGroupInfo> getRegistrationGroupsByIds(List<String> registrationGroupIds, ContextInfo context) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
441         throw new RuntimeException("Not implemented");
442     }
443 
444     @Override
445     public List<RegistrationGroupInfo> getRegistrationGroupsForCourseOffering(String courseOfferingId, ContextInfo context) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
446         throw new RuntimeException("Not implemented");
447     }
448 
449     @Override
450     public List<RegistrationGroupInfo> getRegistrationGroupsWithActivityOfferings(List<String> activityOfferingIds, ContextInfo context) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
451         throw new RuntimeException("Not implemented");
452     }
453 
454     @Override
455     public List<RegistrationGroupInfo> getRegistrationGroupsByActivityOffering(@WebParam(name = "activityOfferingId") String activityOfferingId, @WebParam(name = "context") ContextInfo context) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
456         throw new RuntimeException("Not implemented");
457     }
458 
459     @Override
460     public List<RegistrationGroupInfo> getRegistrationGroupsByFormatOffering(String formatOfferingId, ContextInfo context) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
461         if (foIdsToRegGroups.containsKey(formatOfferingId)) {
462             return foIdsToRegGroups.get(formatOfferingId);
463         } else {
464             return new ArrayList<RegistrationGroupInfo>();
465         }
466     }
467 
468     @Override
469     public List<ValidationResultInfo> validateRegistrationGroup(String validationType, String activityOfferingClusterId, String registrationGroupType, RegistrationGroupInfo registrationGroupInfo, ContextInfo context) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException {
470         throw new RuntimeException("Not implemented");
471     }
472 
473     @Override
474     public RegistrationGroupInfo createRegistrationGroup(String formatOfferingId, String activityOfferingClusterId, String registrationGroupType, RegistrationGroupInfo registrationGroupInfo, ContextInfo context) throws DoesNotExistException, DataValidationErrorException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException, ReadOnlyException {
475         throw new RuntimeException("Not implemented");
476     }
477 
478     @Override
479     public RegistrationGroupInfo updateRegistrationGroup(String registrationGroupId, RegistrationGroupInfo registrationGroupInfo, ContextInfo context) throws DataValidationErrorException, DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException, ReadOnlyException, VersionMismatchException {
480         throw new RuntimeException("Not implemented");
481     }
482 
483     @Override
484     public StatusInfo deleteRegistrationGroup(String registrationGroupId, ContextInfo context) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
485         throw new RuntimeException("Not implemented");
486     }
487 
488     @Override
489     public List<BulkStatusInfo> deleteRegistrationGroupsByFormatOffering(String formatOfferingId, ContextInfo context) throws InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
490         throw new RuntimeException("Not implemented");
491     }
492 
493     @Override
494     public List<BulkStatusInfo> deleteGeneratedRegistrationGroupsByFormatOffering(String formatOfferingId, ContextInfo context) throws InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
495         throw new RuntimeException("Not implemented");
496     }
497 
498     @Override
499     public List<BulkStatusInfo> deleteRegistrationGroupsForCluster(String activityOfferingClusterId, ContextInfo contextInfo) throws InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
500         throw new RuntimeException("Not implemented");
501     }
502 
503     @Override
504     public List<ValidationResultInfo> verifyRegistrationGroup(String registrationGroupId, ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException {
505         throw new RuntimeException("Not implemented");
506     }
507 
508     @Override
509     public ActivityOfferingClusterInfo getActivityOfferingCluster(String activityOfferingClusterId, ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
510         throw new RuntimeException("Not implemented");
511     }
512 
513     public List<ActivityOfferingClusterInfo> getActivityOfferingClustersByIds(List<String> activityOfferingClusterIds, ContextInfo context) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
514         throw new RuntimeException("Not implemented");
515     }
516 
517     @Override
518     public List<ActivityOfferingClusterInfo> getActivityOfferingClustersByFormatOffering(String formatOfferingId, ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
519         throw new RuntimeException("Not implemented");
520     }
521 
522 
523     @Override
524     public List<ValidationResultInfo> validateActivityOfferingCluster(
525             String validationTypeKey,
526             String formatOfferingId,
527             ActivityOfferingClusterInfo activityOfferingClusterInfo,
528             ContextInfo contextInfo)
529             throws DoesNotExistException, InvalidParameterException,
530             MissingParameterException, OperationFailedException {
531         return new ArrayList<ValidationResultInfo>();
532     }
533 
534     @Override
535     public StatusInfo deleteActivityOfferingClusterCascaded(
536             String activityOfferingClusterId,
537             ContextInfo contextInfo)
538             throws DoesNotExistException, InvalidParameterException,
539             MissingParameterException, OperationFailedException,
540             PermissionDeniedException {
541         // TODO Auto-generated method stub
542         return null;
543     }
544 
545     @Override
546     public ActivityOfferingClusterInfo createActivityOfferingCluster(String formatOfferingId, String activityOfferingClusterTypeKey, ActivityOfferingClusterInfo activityOfferingClusterInfo, ContextInfo contextInfo) throws DataValidationErrorException, DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException, ReadOnlyException {
547         throw new RuntimeException("Not implemented");
548     }
549 
550     @Override
551     public ActivityOfferingClusterInfo updateActivityOfferingCluster(String formatOfferingId, String activityOfferingClusterId, ActivityOfferingClusterInfo activityOfferingClusterInfo, ContextInfo contextInfo) throws DataValidationErrorException, DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException, ReadOnlyException, VersionMismatchException {
552         throw new RuntimeException("Not implemented");
553     }
554 
555     @Override
556     public StatusInfo deleteActivityOfferingCluster(String activityOfferingClusterId, ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException, DependentObjectsExistException {
557         throw new RuntimeException("Not implemented");
558     }
559 
560     @Override
561     public AOClusterVerifyResultsInfo verifyActivityOfferingClusterForGeneration(String activityOfferingClusterId, ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
562         throw new UnsupportedOperationException("Not supported yet.");
563     }
564 
565     @Override
566     public List<BulkStatusInfo> generateRegistrationGroupsForCluster(String activityOfferingClusterId, ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
567         throw new RuntimeException("Not implemented");
568     }
569 
570     @Override
571     public SeatPoolDefinitionInfo getSeatPoolDefinition(String seatPoolDefinitionId, ContextInfo context) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
572         throw new RuntimeException("Not implemented");
573     }
574 
575     @Override
576     public List<SeatPoolDefinitionInfo> getSeatPoolDefinitionsForActivityOffering(String activityOfferingId, ContextInfo context) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
577         throw new RuntimeException("Not implemented");
578     }
579 
580     @Override
581     public SeatPoolDefinitionInfo createSeatPoolDefinition(SeatPoolDefinitionInfo seatPoolDefinitionInfo, ContextInfo context) throws DataValidationErrorException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException, ReadOnlyException {
582         throw new RuntimeException("Not implemented");
583     }
584 
585     @Override
586     public SeatPoolDefinitionInfo updateSeatPoolDefinition(String seatPoolDefinitionId, SeatPoolDefinitionInfo seatPoolDefinitionInfo, ContextInfo context) throws DataValidationErrorException, DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException, ReadOnlyException, VersionMismatchException {
587         throw new RuntimeException("Not implemented");
588     }
589 
590     @Override
591     public List<ValidationResultInfo> validateSeatPoolDefinition(String validationTypeKey, SeatPoolDefinitionInfo seatPoolDefinitionInfo, ContextInfo context) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
592         throw new RuntimeException("Not implemented");
593     }
594 
595     @Override
596     public StatusInfo deleteSeatPoolDefinition(String seatPoolDefinitionId, ContextInfo context) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
597         throw new RuntimeException("Not implemented");
598     }
599 
600     @Override
601     public StatusInfo addSeatPoolDefinitionToActivityOffering(String seatPoolDefinitionId, String activityOfferingId, ContextInfo contextInfo) throws AlreadyExistsException, DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
602         throw new RuntimeException("Not implemented");
603     }
604 
605     @Override
606     public StatusInfo removeSeatPoolDefinitionFromActivityOffering(String seatPoolDefinitionId, String activityOfferingId, ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
607         throw new RuntimeException("Not implemented");
608     }
609 
610     @Override
611     public List<CourseOfferingInfo> searchForCourseOfferings(QueryByCriteria criteria, ContextInfo context) throws InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
612         throw new RuntimeException("Not implemented");
613     }
614 
615     @Override
616     public List<String> searchForCourseOfferingIds(QueryByCriteria criteria, ContextInfo context) throws InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
617         throw new RuntimeException("Not implemented");
618     }
619 
620     @Override
621     public List<ActivityOfferingInfo> searchForActivityOfferings(QueryByCriteria criteria, ContextInfo context) throws InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
622         throw new RuntimeException("Not implemented");
623     }
624 
625     @Override
626     public List<String> searchForActivityOfferingIds(QueryByCriteria criteria, ContextInfo context) throws InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
627         throw new RuntimeException("Not implemented");
628     }
629 
630     @Override
631     public List<RegistrationGroupInfo> searchForRegistrationGroups(QueryByCriteria criteria, ContextInfo context) throws InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
632         throw new RuntimeException("Not implemented");
633     }
634 
635     @Override
636     public List<String> searchForRegistrationGroupIds(QueryByCriteria criteria, ContextInfo context) throws InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
637         throw new RuntimeException("Not implemented");
638     }
639 
640     @Override
641     public List<SeatPoolDefinitionInfo> searchForSeatpoolDefinitions(QueryByCriteria criteria, ContextInfo context) throws InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
642         throw new RuntimeException("Not implemented");
643     }
644 
645     @Override
646     public List<String> searchForSeatpoolDefinitionIds(QueryByCriteria criteria, ContextInfo context) throws InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
647         throw new RuntimeException("Not implemented");
648     }
649 
650     @Override
651     public StatusInfo changeCourseOfferingState(
652             String courseOfferingId,
653             String nextStateKey,
654             ContextInfo contextInfo)
655             throws DoesNotExistException, MissingParameterException,
656             OperationFailedException, PermissionDeniedException {
657         // TODO Auto-generated method stub
658         return null;
659     }
660 
661     @Override
662     public StatusInfo changeFormatOfferingState(
663             String formatOfferingId,
664             String nextStateKey,
665             ContextInfo contextInfo)
666             throws DoesNotExistException, MissingParameterException,
667             OperationFailedException, PermissionDeniedException {
668         // TODO Auto-generated method stub
669         return null;
670     }
671 
672     @Override
673     public StatusInfo changeActivityOfferingState(
674             String activityOfferingId,
675             String nextStateKey,
676             ContextInfo contextInfo)
677             throws DoesNotExistException, MissingParameterException,
678             OperationFailedException, PermissionDeniedException {
679         // TODO Auto-generated method stub
680         return null;
681     }
682 
683     @Override
684     public StatusInfo changeRegistrationGroupState(
685             String registrationGroupId,
686             String nextStateKey,
687             ContextInfo contextInfo)
688             throws DoesNotExistException, MissingParameterException,
689             OperationFailedException, PermissionDeniedException {
690         // TODO Auto-generated method stub
691         return null;
692     }
693 
694     @Override
695     public StatusInfo changeActivityOfferingClusterState(
696             String activityOfferingClusterId,
697             String nextStateKey,
698             ContextInfo contextInfo)
699             throws DoesNotExistException, MissingParameterException,
700             OperationFailedException, PermissionDeniedException {
701         // TODO Auto-generated method stub
702         return null;
703     }
704 
705     @Override
706     public StatusInfo changeSeatPoolDefinitionState(
707             String seatPoolDefinitionId,
708             String nextStateKey,
709             ContextInfo contextInfo)
710             throws DoesNotExistException, MissingParameterException,
711             OperationFailedException, PermissionDeniedException {
712         // TODO Auto-generated method stub
713         return null;
714     }
715 
716     @Override
717     public StatusInfo scheduleActivityOffering(String activityOfferingId,
718                                                ContextInfo contextInfo) throws DoesNotExistException,
719             InvalidParameterException, MissingParameterException,
720             OperationFailedException, PermissionDeniedException {
721         // TODO Auto-generated method stub
722         return null;
723     }
724 
725     @Override
726     public List<String> searchForActivityOfferingClusterIds(QueryByCriteria criteria, ContextInfo contextInfo) throws InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
727         throw new UnsupportedOperationException("Not supported yet.");
728     }
729 
730     @Override
731     public List<ActivityOfferingClusterInfo> searchForActivityOfferingClusters(QueryByCriteria criteria, ContextInfo contextInfo) throws InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
732         throw new UnsupportedOperationException("Not supported yet.");
733     }
734 
735     @Override
736     public List<String> searchForFormatOfferingIds(QueryByCriteria criteria, ContextInfo contextInfo) throws InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
737         throw new UnsupportedOperationException("Not supported yet.");
738     }
739 
740     @Override
741     public List<FormatOfferingInfo> searchForFormatOfferings(QueryByCriteria criteria, ContextInfo contextInfo) throws InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException {
742         throw new UnsupportedOperationException("Not supported yet.");
743     }
744 
745 
746 }
747