1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package org.kuali.student.enrollment.class2.courseoffering.service.impl;
18
19 import org.kuali.rice.krad.inquiry.InquirableImpl;
20 import org.kuali.student.enrollment.class2.courseoffering.util.CourseOfferingManagementUtil;
21 import org.kuali.student.enrollment.courseofferingset.dto.SocRolloverResultItemInfo;
22 import org.kuali.student.common.util.security.ContextUtils;
23
24 import java.util.Map;
25
26
27
28
29
30
31 public class SocRolloverResultItemInfoInquirableImpl extends InquirableImpl {
32
33 private static final long serialVersionUID = 1L;
34 public final static String ID = "id";
35
36 @Override
37 public SocRolloverResultItemInfo retrieveDataObject(Map<String, String> parameters) {
38 String id = parameters.get(ID);
39 try {
40 SocRolloverResultItemInfo socRolloverResultItemInfo = CourseOfferingManagementUtil.getCourseOfferingSetService().getSocRolloverResultItem(id, ContextUtils.createDefaultContextInfo());
41 return socRolloverResultItemInfo;
42 } catch (Exception e) {
43 throw new RuntimeException("socRolloverResultItemInfo inquiry has failed. ", e);
44 }
45 }
46 }