View Javadoc

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   * @author Kuali Student Team
14   */
15  public class ProgramCoursesOrgDurationTermResolver 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 KSKRMSServiceConstants.TERM_RESOLVER_ADMITTEDTOPROGRAMLIMITCOURSESINORGFORDURATION;
28      }
29  
30      @Override
31      public Set<String> getParameterNames() {
32          Set<String> parameters = new HashSet<String>(2);
33          parameters.add(KSKRMSServiceConstants.TERM_PARAMETER_TYPE_ORGANIZATION_KEY);
34          parameters.add(KSKRMSServiceConstants.TERM_PARAMETER_TYPE_DURATION_KEY);
35          parameters.add(KSKRMSServiceConstants.TERM_PARAMETER_TYPE_DURATION_TYPE_KEY);
36          return Collections.unmodifiableSet(parameters);
37      }
38  
39      @Override
40      public int getCost() {
41          return 0;
42      }
43  
44      @Override
45      public Integer resolve(Map<String, Object> stringObjectMap, Map<String, String> stringStringMap) throws TermResolutionException {
46          return null;
47      }
48  }