1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.hr.time.roles;
17
18 import java.util.ArrayList;
19 import java.util.List;
20
21 import org.kuali.hr.time.util.TkConstants;
22 import org.kuali.rice.core.api.util.ConcreteKeyValue;
23 import org.kuali.rice.core.api.util.KeyValue;
24 import org.kuali.rice.krad.keyvalues.KeyValuesBase;
25
26 public class TkRoleWorkAreaOtEditValuesFinder extends KeyValuesBase {
27
28 static final List<KeyValue> labels = new ArrayList<KeyValue>(TkConstants.ROLE_ASSIGNMENT_FOR_WORK_AREA_OT_EDIT.size());
29 static {
30 for (String roleKey : TkConstants.ROLE_ASSIGNMENT_FOR_WORK_AREA_OT_EDIT) {
31 labels.add(new ConcreteKeyValue(roleKey, TkConstants.ALL_ROLES_MAP.get(roleKey)));
32 }
33 }
34
35 @Override
36 public List<KeyValue> getKeyValues() {
37 return labels;
38 }
39 }