1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.kpme.core.role.department;
17
18 import java.util.ArrayList;
19 import java.util.List;
20
21 import org.kuali.kpme.core.role.KPMERole;
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 DepartmentRoleValuesFinder extends KeyValuesBase {
27
28 private static final long serialVersionUID = -522208884831448939L;
29
30 private static final List<KeyValue> DEPARTMENT_ROLE_KEY_VALUES = new ArrayList<KeyValue>();
31
32 static {
33 DEPARTMENT_ROLE_KEY_VALUES.add(new ConcreteKeyValue(KPMERole.TIME_DEPARTMENT_ADMINISTRATOR.getRoleName(), KPMERole.TIME_DEPARTMENT_ADMINISTRATOR.getRoleName()));
34 DEPARTMENT_ROLE_KEY_VALUES.add(new ConcreteKeyValue(KPMERole.TIME_DEPARTMENT_VIEW_ONLY.getRoleName(), KPMERole.TIME_DEPARTMENT_VIEW_ONLY.getRoleName()));
35 DEPARTMENT_ROLE_KEY_VALUES.add(new ConcreteKeyValue(KPMERole.LEAVE_DEPARTMENT_ADMINISTRATOR.getRoleName(), KPMERole.LEAVE_DEPARTMENT_ADMINISTRATOR.getRoleName()));
36 DEPARTMENT_ROLE_KEY_VALUES.add(new ConcreteKeyValue(KPMERole.LEAVE_DEPARTMENT_VIEW_ONLY.getRoleName(), KPMERole.LEAVE_DEPARTMENT_VIEW_ONLY.getRoleName()));
37 DEPARTMENT_ROLE_KEY_VALUES.add(new ConcreteKeyValue(KPMERole.PAYROLL_PROCESSOR.getRoleName(), KPMERole.PAYROLL_PROCESSOR.getRoleName()));
38 DEPARTMENT_ROLE_KEY_VALUES.add(new ConcreteKeyValue(KPMERole.PAYROLL_PROCESSOR_DELEGATE.getRoleName(), KPMERole.PAYROLL_PROCESSOR_DELEGATE.getRoleName()));
39 }
40
41 @Override
42 public List<KeyValue> getKeyValues() {
43 return DEPARTMENT_ROLE_KEY_VALUES;
44 }
45
46 }