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 11/13/12
16   */
17  package org.kuali.student.enrollment.class2.courseoffering.refdata;
18  
19  import org.kuali.rice.core.api.criteria.PredicateFactory;
20  import org.kuali.rice.core.api.criteria.QueryByCriteria;
21  import org.kuali.student.common.util.UUIDHelper;
22  import org.kuali.student.enrollment.courseoffering.dto.ActivityOfferingInfo;
23  import org.kuali.student.enrollment.courseoffering.dto.SeatPoolDefinitionInfo;
24  import org.kuali.student.enrollment.courseoffering.infc.SeatPoolDefinition;
25  import org.kuali.student.enrollment.courseoffering.service.CourseOfferingService;
26  import org.kuali.student.enrollment.lui.service.LuiService;
27  import org.kuali.student.r2.common.dto.ContextInfo;
28  import org.kuali.student.r2.common.util.constants.LuiServiceConstants;
29  
30  import java.util.ArrayList;
31  import java.util.List;
32  
33  /**
34   * This class //TODO ...
35   *
36   * @author Kuali Student Team
37   */
38  public class SeatPoolGenerator {
39      CourseOfferingService coService;
40      LuiService luiService;
41  
42      List<String> atpIds = new ArrayList<String>();
43  
44      public SeatPoolGenerator() {
45          atpIds.add("kuali.atp.2011Fall");
46          atpIds.add("kuali.atp.2012Spring");
47          atpIds.add("kuali.atp.2011Summer1");
48          atpIds.add("kuali.atp.2011Spring");
49          atpIds.add("kuali.atp.2012Winter");
50          atpIds.add("kuali.atp.2011Winter");
51          atpIds.add("kuali.atp.2012Summer1");
52          atpIds.add("kuali.atp.2012Fall");
53      }
54      public void setCoService(CourseOfferingService coService) {
55          this.coService = coService;
56      }
57  
58      public void generateSeatpool() throws Exception {
59          ContextInfo contextInfo = new ContextInfo();
60          // CHEM484 796ec3cd-cf3e-4013-b9b1-6b20616fe109
61          // AO 95642dc0-31c4-422d-aa45-067de9d8b28e
62  //        List<SeatPoolDefinitionInfo> infos =
63  //                coService.getSeatPoolDefinitionsForActivityOffering("796ec3cd-cf3e-4013-b9b1-6b20616fe109", contextInfo);
64  //        ActivityOfferingInfo aoInfo = coService.getActivityOffering("796ec3cd-cf3e-4013-b9b1-6b20616fe109", contextInfo);
65  //        System.err.println("Hello");
66          for (int i = 0; i < 500; i++) {
67              System.err.println(UUIDHelper.genStringUUID());
68          }
69          assert (Boolean.TRUE);
70      }
71  
72  }