1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.ole.ingest.keyvalue;
17
18 import org.kuali.rice.core.api.util.ConcreteKeyValue;
19 import org.kuali.rice.core.api.util.KeyValue;
20 import org.kuali.rice.krad.keyvalues.KeyValuesBase;
21 import org.kuali.rice.krad.service.KRADServiceLocator;
22 import org.kuali.rice.krms.impl.repository.AgendaBo;
23
24 import java.util.ArrayList;
25 import java.util.Collection;
26 import java.util.List;
27
28
29
30
31 public class AgendaKeyValues extends KeyValuesBase {
32
33 private boolean blankOption;
34
35 public boolean isBlankOption() {
36 return this.blankOption;
37 }
38
39
40
41
42 public void setBlankOption(boolean blankOption) {
43 this.blankOption = blankOption;
44 }
45
46
47
48
49
50
51
52 @Override
53 public List getKeyValues() {
54 List<KeyValue> keyValues = new ArrayList<KeyValue>();
55 Collection<AgendaBo> agendaBo = KRADServiceLocator.getBusinessObjectService().findAll(AgendaBo.class);
56 keyValues.add(new ConcreteKeyValue("", ""));
57 for (AgendaBo typ : agendaBo) {
58 keyValues.add(new ConcreteKeyValue(typ.getName(), typ.getName()));
59 }
60 return keyValues;
61 }
62
63 }