1 package org.kuali.student.enrollment.class2.population.keyvalue;
2
3 import org.kuali.rice.core.api.util.ConcreteKeyValue;
4 import org.kuali.rice.core.api.util.KeyValue;
5 import org.kuali.rice.krad.keyvalues.KeyValuesBase;
6 import org.kuali.student.r2.common.exceptions.OperationFailedException;
7 import org.kuali.student.r2.core.constants.PopulationServiceConstants;
8
9 import java.io.Serializable;
10 import java.util.ArrayList;
11 import java.util.List;
12
13
14
15
16
17
18 public class OperationKeyValues extends KeyValuesBase implements Serializable {
19
20 private static final long serialVersionUID = 1L;
21
22
23
24
25
26 @Override
27 public List<KeyValue> getKeyValues() {
28
29 List<KeyValue> keyValues = new ArrayList<KeyValue>();
30
31 keyValues.add(new ConcreteKeyValue(PopulationServiceConstants.POPULATION_RULE_TYPE_UNION_KEY, "Union"));
32 keyValues.add(new ConcreteKeyValue(PopulationServiceConstants.POPULATION_RULE_TYPE_INTERSECTION_KEY, "Intersection"));
33 keyValues.add(new ConcreteKeyValue(PopulationServiceConstants.POPULATION_RULE_TYPE_EXCLUSION_KEY, "Exclusion"));
34
35 return keyValues;
36 }
37 }