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 javax.persistence.Transient; |
20 | |
|
21 | |
import org.apache.commons.lang.StringUtils; |
22 | |
import org.kuali.rice.kew.user.UserUtils; |
23 | |
import org.kuali.rice.kew.web.session.UserSession; |
24 | |
import org.kuali.rice.kim.bo.Person; |
25 | |
import org.kuali.rice.kim.bo.entity.KimPrincipal; |
26 | |
import org.kuali.rice.kim.bo.entity.dto.KimEntityDefaultInfo; |
27 | |
import org.kuali.rice.kim.service.KIMServiceLocator; |
28 | |
|
29 | |
|
30 | |
|
31 | |
|
32 | |
|
33 | |
|
34 | |
|
35 | |
|
36 | |
|
37 | |
|
38 | 0 | public class DocumentRouteHeaderValueActionListExtension extends DocumentRouteHeaderValue { |
39 | |
|
40 | |
private static final long serialVersionUID = 8458532812557846684L; |
41 | |
|
42 | 0 | @Transient |
43 | |
private KimPrincipal actionListInitiatorPrincipal = null; |
44 | |
|
45 | |
public KimPrincipal getActionListInitiatorPrincipal() { |
46 | 0 | return actionListInitiatorPrincipal; |
47 | |
} |
48 | |
|
49 | |
public void setActionListInitiatorPrincipal(KimPrincipal actionListInitiatorPrincipal) { |
50 | 0 | this.actionListInitiatorPrincipal = actionListInitiatorPrincipal; |
51 | 0 | } |
52 | |
|
53 | |
|
54 | |
|
55 | |
|
56 | |
public String getInitiatorName() { |
57 | 0 | String initiatorName = null; |
58 | 0 | Person initiator = KIMServiceLocator.getPersonService().getPerson(getActionListInitiatorPrincipal().getPrincipalId()); |
59 | 0 | if (initiator != null) { |
60 | 0 | initiatorName = initiator.getName(); |
61 | |
} |
62 | 0 | return initiatorName; |
63 | |
} |
64 | |
|
65 | |
} |
66 | |
|