1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 package org.kuali.kfs.sec.businessobject.options;
20
21 import java.util.ArrayList;
22 import java.util.List;
23
24 import org.kuali.kfs.sec.SecConstants;
25 import org.kuali.kfs.sys.KFSConstants;
26 import org.kuali.rice.core.api.util.ConcreteKeyValue;
27 import org.kuali.rice.core.api.util.KeyValue;
28 import org.kuali.rice.krad.keyvalues.KeyValuesBase;
29
30
31
32
33
34 public class SecurityOperatorCodeFinder extends KeyValuesBase {
35
36 protected static final List<KeyValue> OPTIONS = new ArrayList<KeyValue>();
37 static {
38 OPTIONS.add(new ConcreteKeyValue(SecConstants.SecurityDefinitionOperatorCodes.EQUAL, "Equal"));
39 OPTIONS.add(new ConcreteKeyValue(SecConstants.SecurityDefinitionOperatorCodes.NOT_EQUAL, "Not Equal"));
40 OPTIONS.add(new ConcreteKeyValue(SecConstants.SecurityDefinitionOperatorCodes.GREATER_THAN, "Greater Than"));
41 OPTIONS.add(new ConcreteKeyValue(SecConstants.SecurityDefinitionOperatorCodes.GREATER_THAN_EQUAL, "Greater Than or Equal"));
42 OPTIONS.add(new ConcreteKeyValue(SecConstants.SecurityDefinitionOperatorCodes.LESS_THAN, "Less Than"));
43 OPTIONS.add(new ConcreteKeyValue(SecConstants.SecurityDefinitionOperatorCodes.LESS_THAN_EQUAL, "Less Than or Equal"));
44 }
45
46
47
48 public List<KeyValue> getKeyValues() {
49 return OPTIONS;
50 }
51 }