001    /**
002     * Copyright 2012 The Kuali Foundation Licensed under the
003     * Educational Community License, Version 2.0 (the "License"); you may
004     * not use this file except in compliance with the License. You may
005     * obtain a copy of the License at
006     *
007     * http://www.osedu.org/licenses/ECL-2.0
008     *
009     * Unless required by applicable law or agreed to in writing,
010     * software distributed under the License is distributed on an "AS IS"
011     * BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
012     * or implied. See the License for the specific language governing
013     * permissions and limitations under the License.
014     *
015     * Created by Charles on 11/13/12
016     */
017    package org.kuali.student.enrollment.class2.courseoffering.refdata;
018    
019    import org.kuali.rice.core.api.criteria.PredicateFactory;
020    import org.kuali.rice.core.api.criteria.QueryByCriteria;
021    import org.kuali.student.common.util.UUIDHelper;
022    import org.kuali.student.enrollment.courseoffering.dto.ActivityOfferingInfo;
023    import org.kuali.student.enrollment.courseoffering.dto.SeatPoolDefinitionInfo;
024    import org.kuali.student.enrollment.courseoffering.infc.SeatPoolDefinition;
025    import org.kuali.student.enrollment.courseoffering.service.CourseOfferingService;
026    import org.kuali.student.enrollment.lui.service.LuiService;
027    import org.kuali.student.r2.common.dto.ContextInfo;
028    import org.kuali.student.r2.common.util.constants.LuiServiceConstants;
029    
030    import java.util.ArrayList;
031    import java.util.List;
032    
033    /**
034     * This class //TODO ...
035     *
036     * @author Kuali Student Team
037     */
038    public class SeatPoolGenerator {
039        CourseOfferingService coService;
040        LuiService luiService;
041    
042        List<String> atpIds = new ArrayList<String>();
043    
044        public SeatPoolGenerator() {
045            atpIds.add("kuali.atp.2011Fall");
046            atpIds.add("kuali.atp.2012Spring");
047            atpIds.add("kuali.atp.2011Summer1");
048            atpIds.add("kuali.atp.2011Spring");
049            atpIds.add("kuali.atp.2012Winter");
050            atpIds.add("kuali.atp.2011Winter");
051            atpIds.add("kuali.atp.2012Summer1");
052            atpIds.add("kuali.atp.2012Fall");
053        }
054        public void setCoService(CourseOfferingService coService) {
055            this.coService = coService;
056        }
057    
058        public void generateSeatpool() throws Exception {
059            ContextInfo contextInfo = new ContextInfo();
060            // CHEM484 796ec3cd-cf3e-4013-b9b1-6b20616fe109
061            // AO 95642dc0-31c4-422d-aa45-067de9d8b28e
062    //        List<SeatPoolDefinitionInfo> infos =
063    //                coService.getSeatPoolDefinitionsForActivityOffering("796ec3cd-cf3e-4013-b9b1-6b20616fe109", contextInfo);
064    //        ActivityOfferingInfo aoInfo = coService.getActivityOffering("796ec3cd-cf3e-4013-b9b1-6b20616fe109", contextInfo);
065    //        System.err.println("Hello");
066            for (int i = 0; i < 500; i++) {
067                System.err.println(UUIDHelper.genStringUUID());
068            }
069            assert (Boolean.TRUE);
070        }
071    
072    }