1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | |
|
17 | |
package org.kuali.rice.kew.routeheader; |
18 | |
|
19 | |
import org.kuali.rice.kim.api.entity.principal.Principal; |
20 | |
import org.kuali.rice.kim.api.entity.principal.PrincipalContract; |
21 | |
import org.kuali.rice.kim.api.services.KimApiServiceLocator; |
22 | |
import org.kuali.rice.kim.bo.Person; |
23 | |
|
24 | |
import javax.persistence.MappedSuperclass; |
25 | |
import javax.persistence.Transient; |
26 | |
|
27 | |
|
28 | |
|
29 | |
|
30 | |
|
31 | |
|
32 | |
|
33 | |
|
34 | |
|
35 | |
|
36 | |
@MappedSuperclass |
37 | 0 | public class DocumentRouteHeaderValueActionListExtension extends DocumentRouteHeaderValue { |
38 | |
|
39 | |
private static final long serialVersionUID = 8458532812557846684L; |
40 | |
|
41 | 0 | @Transient |
42 | |
private PrincipalContract actionListInitiatorPrincipal = null; |
43 | |
|
44 | |
public PrincipalContract getActionListInitiatorPrincipal() { |
45 | 0 | return actionListInitiatorPrincipal; |
46 | |
} |
47 | |
|
48 | |
public void setActionListInitiatorPrincipal(PrincipalContract actionListInitiatorPrincipal) { |
49 | 0 | this.actionListInitiatorPrincipal = actionListInitiatorPrincipal; |
50 | 0 | } |
51 | |
|
52 | |
|
53 | |
|
54 | |
|
55 | |
public String getInitiatorName() { |
56 | 0 | String initiatorName = null; |
57 | 0 | Person initiator = KimApiServiceLocator.getPersonService().getPerson(getActionListInitiatorPrincipal().getPrincipalId()); |
58 | 0 | if (initiator != null) { |
59 | 0 | initiatorName = initiator.getName(); |
60 | |
} |
61 | 0 | return initiatorName; |
62 | |
} |
63 | |
|
64 | |
} |
65 | |
|