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 org.hibernate.annotations.Type; |
19 | |
import org.kuali.rice.kim.bo.role.dto.RoleResponsibilityActionInfo; |
20 | |
import org.kuali.rice.krad.bo.PersistableBusinessObjectBase; |
21 | |
|
22 | |
import javax.persistence.*; |
23 | |
|
24 | |
|
25 | |
|
26 | |
|
27 | |
|
28 | |
|
29 | |
|
30 | |
@Entity |
31 | |
@Table(name="KRIM_ROLE_RSP_ACTN_T") |
32 | 0 | public class RoleResponsibilityActionImpl extends PersistableBusinessObjectBase { |
33 | |
|
34 | |
private static final long serialVersionUID = -2840071737863303404L; |
35 | |
|
36 | |
@Id |
37 | |
@Column(name="ROLE_RSP_ACTN_ID") |
38 | |
protected String roleResponsibilityActionId; |
39 | |
@Column(name="ROLE_RSP_ID") |
40 | |
protected String roleResponsibilityId; |
41 | |
@Column(name="ROLE_MBR_ID") |
42 | |
protected String roleMemberId; |
43 | |
@Column(name="ACTN_TYP_CD") |
44 | |
protected String actionTypeCode; |
45 | |
@Column(name="ACTN_PLCY_CD") |
46 | |
protected String actionPolicyCode; |
47 | |
@Column(name="FRC_ACTN") |
48 | |
@Type(type="yes_no") |
49 | |
protected boolean forceAction; |
50 | |
@Column(name="PRIORITY_NBR") |
51 | |
protected Integer priorityNumber; |
52 | |
|
53 | |
@ManyToOne(targetEntity=RoleResponsibilityImpl.class, fetch = FetchType.EAGER, cascade = {}) |
54 | |
@JoinColumn(name="ROLE_RSP_ID",insertable=false, updatable=false) |
55 | |
protected RoleResponsibilityImpl roleResponsibility; |
56 | |
|
57 | |
public String getRoleResponsibilityActionId() { |
58 | 0 | return this.roleResponsibilityActionId; |
59 | |
} |
60 | |
public void setRoleResponsibilityActionId(String roleResponsibilityResolutionId) { |
61 | 0 | this.roleResponsibilityActionId = roleResponsibilityResolutionId; |
62 | 0 | } |
63 | |
public String getRoleResponsibilityId() { |
64 | 0 | return this.roleResponsibilityId; |
65 | |
} |
66 | |
public void setRoleResponsibilityId(String roleResponsibilityId) { |
67 | 0 | this.roleResponsibilityId = roleResponsibilityId; |
68 | 0 | } |
69 | |
public String getActionTypeCode() { |
70 | 0 | return this.actionTypeCode; |
71 | |
} |
72 | |
public void setActionTypeCode(String actionTypeCode) { |
73 | 0 | this.actionTypeCode = actionTypeCode; |
74 | 0 | } |
75 | |
public Integer getPriorityNumber() { |
76 | 0 | return this.priorityNumber; |
77 | |
} |
78 | |
public void setPriorityNumber(Integer priorityNumber) { |
79 | 0 | this.priorityNumber = priorityNumber; |
80 | 0 | } |
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 | |
} |