1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | |
package org.kuali.rice.kim.bo.role.impl; |
17 | |
|
18 | |
import java.util.LinkedHashMap; |
19 | |
|
20 | |
import org.kuali.rice.kim.bo.role.dto.RoleResponsibilityActionInfo; |
21 | |
import org.kuali.rice.kns.bo.PersistableBusinessObjectBase; |
22 | |
|
23 | |
|
24 | |
|
25 | |
|
26 | |
|
27 | |
|
28 | |
|
29 | 0 | public class RoleResponsibilityActionImpl extends PersistableBusinessObjectBase { |
30 | |
|
31 | |
private static final long serialVersionUID = -2840071737863303404L; |
32 | |
|
33 | |
protected String roleResponsibilityActionId; |
34 | |
protected String roleResponsibilityId; |
35 | |
protected String roleMemberId; |
36 | |
protected String actionTypeCode; |
37 | |
protected String actionPolicyCode; |
38 | |
protected boolean forceAction; |
39 | |
protected Integer priorityNumber; |
40 | |
|
41 | |
protected RoleResponsibilityImpl roleResponsibility; |
42 | |
|
43 | |
public String getRoleResponsibilityActionId() { |
44 | 0 | return this.roleResponsibilityActionId; |
45 | |
} |
46 | |
public void setRoleResponsibilityActionId(String roleResponsibilityResolutionId) { |
47 | 0 | this.roleResponsibilityActionId = roleResponsibilityResolutionId; |
48 | 0 | } |
49 | |
public String getRoleResponsibilityId() { |
50 | 0 | return this.roleResponsibilityId; |
51 | |
} |
52 | |
public void setRoleResponsibilityId(String roleResponsibilityId) { |
53 | 0 | this.roleResponsibilityId = roleResponsibilityId; |
54 | 0 | } |
55 | |
public String getActionTypeCode() { |
56 | 0 | return this.actionTypeCode; |
57 | |
} |
58 | |
public void setActionTypeCode(String actionTypeCode) { |
59 | 0 | this.actionTypeCode = actionTypeCode; |
60 | 0 | } |
61 | |
public Integer getPriorityNumber() { |
62 | 0 | return this.priorityNumber; |
63 | |
} |
64 | |
public void setPriorityNumber(Integer priorityNumber) { |
65 | 0 | this.priorityNumber = priorityNumber; |
66 | 0 | } |
67 | |
|
68 | |
|
69 | |
|
70 | |
|
71 | |
@SuppressWarnings("unchecked") |
72 | |
@Override |
73 | |
protected LinkedHashMap toStringMapper() { |
74 | 0 | LinkedHashMap lhm = new LinkedHashMap(); |
75 | 0 | lhm.put( "roleResponsibilityActionId", roleResponsibilityActionId ); |
76 | 0 | lhm.put( "versionNumber", versionNumber); |
77 | 0 | lhm.put( "roleResponsibilityId", roleResponsibilityId ); |
78 | 0 | lhm.put( "roleMemberId", roleMemberId ); |
79 | 0 | lhm.put( "actionTypeCode", actionTypeCode ); |
80 | 0 | return lhm; |
81 | |
} |
82 | |
public String getActionPolicyCode() { |
83 | 0 | return this.actionPolicyCode; |
84 | |
} |
85 | |
public void setActionPolicyCode(String actionPolicyCode) { |
86 | 0 | this.actionPolicyCode = actionPolicyCode; |
87 | 0 | } |
88 | |
public String getRoleMemberId() { |
89 | 0 | return this.roleMemberId; |
90 | |
} |
91 | |
public void setRoleMemberId(String roleMemberId) { |
92 | 0 | this.roleMemberId = roleMemberId; |
93 | 0 | } |
94 | |
public RoleResponsibilityImpl getRoleResponsibility() { |
95 | 0 | return this.roleResponsibility; |
96 | |
} |
97 | |
public void setRoleResponsibility(RoleResponsibilityImpl roleResponsibility) { |
98 | 0 | this.roleResponsibility = roleResponsibility; |
99 | 0 | } |
100 | |
|
101 | |
|
102 | |
|
103 | |
public boolean isForceAction() { |
104 | 0 | return this.forceAction; |
105 | |
} |
106 | |
|
107 | |
|
108 | |
|
109 | |
public void setForceAction(boolean forceAction) { |
110 | 0 | this.forceAction = forceAction; |
111 | 0 | } |
112 | |
|
113 | |
public RoleResponsibilityActionInfo toSimpleInfo(){ |
114 | 0 | RoleResponsibilityActionInfo roleResponsibilityActionInfo = new RoleResponsibilityActionInfo(); |
115 | 0 | roleResponsibilityActionInfo.setActionPolicyCode(actionPolicyCode); |
116 | 0 | roleResponsibilityActionInfo.setActionTypeCode(actionTypeCode); |
117 | 0 | roleResponsibilityActionInfo.setForceAction(forceAction); |
118 | 0 | roleResponsibilityActionInfo.setPriorityNumber(priorityNumber); |
119 | 0 | roleResponsibilityActionInfo.setRoleMemberId(roleMemberId); |
120 | 0 | roleResponsibilityActionInfo.setRoleResponsibilityInfo(roleResponsibility.toSimpleInfo()); |
121 | 0 | roleResponsibilityActionInfo.setRoleResponsibilityActionId(roleResponsibilityActionId); |
122 | 0 | roleResponsibilityActionInfo.setRoleResponsibilityId(roleResponsibilityId); |
123 | 0 | return roleResponsibilityActionInfo; |
124 | |
} |
125 | |
} |