1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.rice.kim.bo.options;
17
18 import java.util.ArrayList;
19 import java.util.List;
20
21 import org.kuali.rice.core.util.KeyLabelPair;
22 import org.kuali.rice.kim.bo.ui.PersonDocumentName;
23 import org.kuali.rice.kim.util.KimConstants;
24 import org.kuali.rice.kns.lookup.keyvalues.KeyValuesBase;
25 import org.kuali.rice.kns.service.KNSServiceLocator;
26
27
28
29
30
31
32
33 public class NameTitleValuesFinder extends KeyValuesBase {
34
35 private static final String PARAM_BO_CLASSNAME = PersonDocumentName.class.getSimpleName();
36
37
38
39
40 public List getKeyValues() {
41
42 List<String> values = KNSServiceLocator.getParameterService().getParameterValues(
43 KimConstants.NAMESPACE_CODE, PARAM_BO_CLASSNAME, "PREFIXES"
44 );
45 List<KeyLabelPair> labels = new ArrayList<KeyLabelPair>();
46 labels.add(new KeyLabelPair("", ""));
47 for (String title : values) {
48 labels.add(new KeyLabelPair(title, title));
49
50 }
51
52 return labels;
53 }
54
55 }