1 package org.kuali.student.enrollment.class2.courseoffering.krms.termresolver;
2
3 import org.kuali.rice.krms.api.engine.TermResolutionException;
4 import org.kuali.rice.krms.api.engine.TermResolver;
5 import org.kuali.student.r2.core.constants.KSKRMSServiceConstants;
6
7 import java.util.Collections;
8 import java.util.HashSet;
9 import java.util.Map;
10 import java.util.Set;
11
12
13
14
15 public class NumberOfEnrollmentsForCourseTermResolver implements TermResolver<Integer> {
16
17 @Override
18 public Set<String> getPrerequisites() {
19 Set<String> prereqs = new HashSet<String>(2);
20 prereqs.add(KSKRMSServiceConstants.TERM_PREREQUISITE_PERSON_ID);
21 prereqs.add(KSKRMSServiceConstants.TERM_PREREQUISITE_CONTEXTINFO);
22 return Collections.unmodifiableSet(prereqs);
23 }
24
25 @Override
26 public String getOutput() {
27 return null;
28 }
29
30 @Override
31 public Set<String> getParameterNames() {
32 return null;
33 }
34
35 @Override
36 public int getCost() {
37 return 0;
38 }
39
40 @Override
41 public Integer resolve(Map<String, Object> resolvedPrereqs, Map<String, String> parameters) throws TermResolutionException {
42 return null;
43 }
44 }