1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.student.krms.termresolver;
17
18 import org.kuali.rice.krms.api.engine.TermResolutionException;
19 import org.kuali.rice.krms.api.engine.TermResolver;
20 import org.kuali.student.common.util.krms.RulesExecutionConstants;
21 import org.kuali.student.enrollment.academicrecord.dto.StudentCourseRecordInfo;
22 import org.kuali.student.enrollment.academicrecord.service.AcademicRecordService;
23 import org.kuali.student.krms.util.KSKRMSExecutionConstants;
24 import org.kuali.student.krms.util.KSKRMSExecutionUtil;
25 import org.kuali.student.r2.common.dto.ContextInfo;
26 import org.kuali.student.r2.common.exceptions.InvalidParameterException;
27 import org.kuali.student.r2.common.exceptions.MissingParameterException;
28 import org.kuali.student.r2.common.exceptions.OperationFailedException;
29 import org.kuali.student.r2.common.exceptions.PermissionDeniedException;
30 import org.kuali.student.r2.core.atp.dto.MilestoneInfo;
31 import org.kuali.student.r2.core.atp.service.AtpService;
32
33 import java.util.Calendar;
34 import java.util.Collections;
35 import java.util.Date;
36 import java.util.HashSet;
37 import java.util.List;
38 import java.util.Map;
39 import java.util.Set;
40
41 public class FreeTextTermResolver implements TermResolver<String> {
42
43 @Override
44 public Set<String> getPrerequisites() {
45 return Collections.singleton(RulesExecutionConstants.CONTEXT_INFO_TERM_NAME);
46 }
47
48 @Override
49 public String getOutput() {
50 return "FreeTextTermResolver.getOutput()";
51 }
52
53 @Override
54 public Set<String> getParameterNames() {
55 Set<String> temp = new HashSet<String>(1);
56 temp.add(KSKRMSExecutionConstants.PERSON_ID_TERM_PROPERTY);
57 return Collections.unmodifiableSet(temp);
58 }
59
60 @Override
61 public int getCost() {
62
63 return 5;
64 }
65
66 @Override
67 public String resolve(Map<String, Object> resolvedPrereqs, Map<String, String> parameters) throws TermResolutionException {
68 return null;
69 }
70 }