1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.rice.krms.impl.repository;
17
18 import org.kuali.rice.krms.framework.engine.expression.ComparisonOperator;
19
20
21
22
23
24
25
26
27 public class KrmsStudentMockServiceImpl {
28
29 public String getTermForType(String type){
30 if( "20000".equals(type) || "20007".equals(type) || "20009".equals(type)){
31 return "20000";
32 } else if ( "20001".equals(type)){
33 return "20001";
34 } else if ( "20002".equals(type) || "20003".equals(type) || "20008".equals(type)){
35 return "20002";
36 }
37 return "";
38 }
39
40 public String getOperationForType(String type){
41 if( "20000".equals(type)){
42 return ComparisonOperator.GREATER_THAN_EQUAL.getCode();
43 }
44 return ComparisonOperator.EQUALS.getCode();
45 }
46
47 public String getValueForType(String type){
48 if( "20000".equals(type)){
49 return "?";
50 } else if ( "20001".equals(type)){
51 return "true";
52 } else if ( "20002".equals(type)){
53 return "true";
54 } else if ( "20003".equals(type)){
55 return "false";
56 }
57 return "";
58 }
59 }