| 1 | |
|
| 2 | |
|
| 3 | |
|
| 4 | |
|
| 5 | |
|
| 6 | |
|
| 7 | |
|
| 8 | |
|
| 9 | |
|
| 10 | |
|
| 11 | |
|
| 12 | |
|
| 13 | |
|
| 14 | |
|
| 15 | |
|
| 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 | |
|
| 33 | |
|
| 34 | |
|
| 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 | |
} |