Coverage Report - org.kuali.student.enrollment.class2.courseoffering.util.CourseOfferingResourceLoader
 
Classes in this File Line Coverage Branch Coverage Complexity
CourseOfferingResourceLoader
0%
0/9
N/A
1
 
 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 Li Pan on 5/7/12
 16  
  */
 17  
 package org.kuali.student.enrollment.class2.courseoffering.util;
 18  
 
 19  
 import org.kuali.rice.core.api.resourceloader.GlobalResourceLoader;
 20  
 import org.kuali.student.enrollment.courseoffering.service.CourseOfferingService;
 21  
 import org.kuali.student.enrollment.courseofferingset.service.CourseOfferingSetService;
 22  
 import org.kuali.student.r2.common.util.constants.CourseOfferingServiceConstants;
 23  
 import org.kuali.student.r2.common.util.constants.CourseOfferingSetServiceConstants;
 24  
 import org.kuali.student.r2.common.util.constants.StateServiceConstants;
 25  
 import org.kuali.student.r2.common.util.constants.TypeServiceConstants;
 26  
 import org.kuali.student.r2.core.state.service.StateService;
 27  
 import org.kuali.student.r2.core.type.service.TypeService;
 28  
 
 29  
 import javax.xml.namespace.QName;
 30  
 
 31  
 /**
 32  
  * This class //TODO ...
 33  
  *
 34  
  * @author Kuali Student Team
 35  
  */
 36  0
 public class CourseOfferingResourceLoader {
 37  
 
 38  
     public static CourseOfferingService loadCourseOfferingService(){
 39  0
         CourseOfferingService courseOfferingService = (CourseOfferingService) GlobalResourceLoader.getService(new QName(CourseOfferingServiceConstants.NAMESPACE, CourseOfferingServiceConstants.SERVICE_NAME_LOCAL_PART));
 40  0
         return  courseOfferingService;
 41  
     }
 42  
 
 43  
     public static CourseOfferingSetService loadCourseOfferingSetService(){
 44  0
         CourseOfferingSetService courseOfferingSetService = (CourseOfferingSetService) GlobalResourceLoader.getService(new QName(CourseOfferingSetServiceConstants.NAMESPACE, CourseOfferingSetServiceConstants.SERVICE_NAME_LOCAL_PART));
 45  0
         return  courseOfferingSetService;
 46  
     }
 47  
 
 48  
     public static TypeService loadTypeService() {
 49  0
         TypeService typeService = (TypeService) GlobalResourceLoader.getService(new QName(TypeServiceConstants.NAMESPACE, TypeServiceConstants.SERVICE_NAME_LOCAL_PART));
 50  
 
 51  0
         return typeService;
 52  
     }
 53  
 
 54  
     public static StateService loadStateService() {
 55  0
         StateService stateService = (StateService) GlobalResourceLoader.getService(new QName(StateServiceConstants.NAMESPACE, StateServiceConstants.SERVICE_NAME_LOCAL_PART));
 56  0
         return stateService;
 57  
     }
 58  
 
 59  
 }