1 |
|
|
2 |
|
|
3 |
|
|
4 |
|
|
5 |
|
|
6 |
|
|
7 |
|
|
8 |
|
|
9 |
|
|
10 |
|
|
11 |
|
|
12 |
|
|
13 |
|
|
14 |
|
|
15 |
|
|
16 |
|
package org.kuali.rice.kns.rule.event; |
17 |
|
|
18 |
|
import org.kuali.rice.kns.bo.AdHocRoutePerson; |
19 |
|
import org.kuali.rice.kns.document.Document; |
20 |
|
import org.kuali.rice.kns.rule.AddAdHocRoutePersonRule; |
21 |
|
import org.kuali.rice.kns.rule.BusinessRule; |
22 |
|
|
23 |
|
|
24 |
|
|
25 |
|
|
26 |
|
|
27 |
|
|
28 |
|
|
|
|
| 0% |
Uncovered Elements: 17 (17) |
Complexity: 7 |
Complexity Density: 0.78 |
|
29 |
|
public final class AddAdHocRoutePersonEvent extends KualiDocumentEventBase { |
30 |
|
private AdHocRoutePerson adHocRoutePerson; |
31 |
|
|
32 |
|
|
33 |
|
|
34 |
|
|
35 |
|
@param |
36 |
|
@param |
37 |
|
@param |
38 |
|
|
|
|
| 0% |
Uncovered Elements: 2 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
39 |
0
|
public AddAdHocRoutePersonEvent(String errorPathPrefix, Document document, AdHocRoutePerson adHocRoutePerson) {... |
40 |
0
|
super("creating add ad hoc route person event for document " + KualiDocumentEventBase.getDocumentId(document), errorPathPrefix, document); |
41 |
0
|
this.adHocRoutePerson = adHocRoutePerson; |
42 |
|
} |
43 |
|
|
44 |
|
|
45 |
|
|
46 |
|
|
47 |
|
@param |
48 |
|
@param |
49 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
50 |
0
|
public AddAdHocRoutePersonEvent(Document document, AdHocRoutePerson adHocRoutePerson) {... |
51 |
0
|
this("", document, adHocRoutePerson); |
52 |
|
} |
53 |
|
|
54 |
|
|
55 |
|
|
56 |
|
|
57 |
|
@return |
58 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
59 |
0
|
public AdHocRoutePerson getAdHocRoutePerson() {... |
60 |
0
|
return adHocRoutePerson; |
61 |
|
} |
62 |
|
|
63 |
|
|
64 |
|
@see |
65 |
|
|
|
|
| 0% |
Uncovered Elements: 5 (5) |
Complexity: 2 |
Complexity Density: 0.67 |
|
66 |
0
|
@Override... |
67 |
|
public void validate() { |
68 |
0
|
super.validate(); |
69 |
0
|
if (this.adHocRoutePerson == null) { |
70 |
0
|
throw new IllegalArgumentException("invalid (null) document adHocRoutePerson"); |
71 |
|
} |
72 |
|
} |
73 |
|
|
74 |
|
|
75 |
|
@see |
76 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
77 |
0
|
public Class<? extends BusinessRule> getRuleInterfaceClass() {... |
78 |
0
|
return AddAdHocRoutePersonRule.class; |
79 |
|
} |
80 |
|
|
81 |
|
|
82 |
|
@see |
83 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
84 |
0
|
public boolean invokeRuleMethod(BusinessRule rule) {... |
85 |
0
|
return ((AddAdHocRoutePersonRule) rule).processAddAdHocRoutePerson(getDocument(), this.adHocRoutePerson); |
86 |
|
} |
87 |
|
} |