1 |
|
|
2 |
|
|
3 |
|
|
4 |
|
|
5 |
|
|
6 |
|
|
7 |
|
|
8 |
|
|
9 |
|
|
10 |
|
|
11 |
|
|
12 |
|
|
13 |
|
|
14 |
|
|
15 |
|
|
16 |
|
package org.kuali.rice.kns.service.impl; |
17 |
|
|
18 |
|
import java.util.List; |
19 |
|
import java.util.Map; |
20 |
|
|
21 |
|
import org.kuali.rice.kns.bo.ExternalizableBusinessObject; |
22 |
|
import org.kuali.rice.kns.util.ExternalizableBusinessObjectUtils; |
23 |
|
|
24 |
|
|
25 |
|
|
26 |
|
|
27 |
|
@author |
28 |
|
|
29 |
|
|
|
|
| 0% |
Uncovered Elements: 28 (28) |
Complexity: 9 |
Complexity Density: 0.69 |
|
30 |
|
public class KNSModuleService extends ModuleServiceBase { |
31 |
|
|
32 |
|
protected List<String> businessObjects; |
33 |
|
|
|
|
| 0% |
Uncovered Elements: 23 (23) |
Complexity: 7 |
Complexity Density: 0.64 |
|
34 |
0
|
@Override... |
35 |
|
public boolean isResponsibleFor(Class businessObjectClass) { |
36 |
0
|
if (businessObjects != null) { |
37 |
0
|
if (businessObjects.contains(businessObjectClass.getName())) { |
38 |
0
|
return true; |
39 |
|
} |
40 |
|
} |
41 |
0
|
if (ExternalizableBusinessObject.class.isAssignableFrom(businessObjectClass)) { |
42 |
0
|
Class externalizableBusinessObjectInterface = ExternalizableBusinessObjectUtils.determineExternalizableBusinessObjectSubInterface(businessObjectClass); |
43 |
0
|
if (externalizableBusinessObjectInterface != null) { |
44 |
0
|
Map<Class, Class> validEBOs = getModuleConfiguration().getExternalizableBusinessObjectImplementations(); |
45 |
0
|
if (validEBOs != null) { |
46 |
0
|
if (validEBOs.get(externalizableBusinessObjectInterface) != null) { |
47 |
0
|
return true; |
48 |
|
} |
49 |
|
} |
50 |
|
} |
51 |
|
} |
52 |
0
|
return false; |
53 |
|
} |
54 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
55 |
0
|
public List<String> getBusinessObjects() {... |
56 |
0
|
return this.businessObjects; |
57 |
|
} |
58 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
59 |
0
|
public void setBusinessObjects(List<String> businessObjects) {... |
60 |
0
|
this.businessObjects = businessObjects; |
61 |
|
} |
62 |
|
} |