View Javadoc

1   /**
2    * Copyright 2005-2013 The Kuali Foundation
3    *
4    * Licensed under the Educational Community License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    *
8    * http://www.opensource.org/licenses/ecl2.php
9    *
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
15   */
16  package org.kuali.rice.krms.impl.repository;
17  
18  import org.kuali.rice.krms.framework.engine.expression.ComparisonOperator;
19  
20  /**
21   * Created with IntelliJ IDEA.
22   * User: SW
23   * Date: 2012/08/02
24   * Time: 4:27 PM
25   * To change this template use File | Settings | File Templates.
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  }