1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | |
package org.kuali.rice.core.web.parameter; |
17 | |
|
18 | |
import org.kuali.rice.core.api.parameter.EvaluationOperator; |
19 | |
import org.kuali.rice.core.util.ConcreteKeyValue; |
20 | |
import org.kuali.rice.core.util.KeyValue; |
21 | |
import org.kuali.rice.kns.lookup.keyvalues.KeyValuesBase; |
22 | |
|
23 | |
import java.util.ArrayList; |
24 | |
import java.util.Collections; |
25 | |
import java.util.List; |
26 | |
|
27 | |
|
28 | |
|
29 | |
|
30 | 0 | public class ParameterOperatorValuesFinder extends KeyValuesBase { |
31 | |
|
32 | |
private static final List<KeyValue> KEY_VALUES; |
33 | |
|
34 | |
static { |
35 | 0 | final List<KeyValue> keyValues = new ArrayList<KeyValue>(); |
36 | 0 | keyValues.add(new ConcreteKeyValue(EvaluationOperator.ALLOW.getOperatorCode(), "Allowed")); |
37 | 0 | keyValues.add(new ConcreteKeyValue(EvaluationOperator.DISALLOW.getOperatorCode(), "Denied")); |
38 | 0 | KEY_VALUES = Collections.unmodifiableList(keyValues); |
39 | 0 | } |
40 | |
|
41 | |
@Override |
42 | |
public List<KeyValue> getKeyValues() { |
43 | 0 | return KEY_VALUES; |
44 | |
} |
45 | |
} |