1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.hr.core.service;
17
18 import java.util.ArrayList;
19 import java.util.List;
20
21 import org.kuali.hr.time.task.Task;
22 import org.kuali.hr.time.workarea.WorkArea;
23 import org.kuali.rice.krad.service.impl.ModuleServiceBase;
24
25
26 public class KpmeModuleService extends ModuleServiceBase {
27
28 @Override
29 public List<List<String>> listAlternatePrimaryKeyFieldNames(Class businessObjectInterfaceClass) {
30 if (Task.class.isAssignableFrom(businessObjectInterfaceClass)) {
31 List<List<String>> retList = new ArrayList<List<String>>();
32 List<String> keyList = new ArrayList<String>();
33 keyList.add("task");
34 keyList.add("effectiveDate");
35 retList.add(keyList);
36 return retList;
37 } else if (WorkArea.class.isAssignableFrom(businessObjectInterfaceClass)) {
38 List<List<String>> retList = new ArrayList<List<String>>();
39 List<String> keyList = new ArrayList<String>();
40 keyList.add("workArea");
41 keyList.add("effectiveDate");
42 retList.add(keyList);
43 return retList;
44 }
45 return super.listAlternatePrimaryKeyFieldNames(businessObjectInterfaceClass);
46 }
47 }