1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.rice.krad.labs;
17
18 import org.kuali.rice.kim.impl.role.RoleBo;
19 import org.kuali.rice.kim.impl.role.RoleMemberBo;
20 import org.kuali.rice.krad.bo.DataObjectBase;
21 import org.kuali.rice.krad.data.jpa.eclipselink.PortableSequenceGenerator;
22
23 import javax.persistence.Column;
24 import javax.persistence.Entity;
25 import javax.persistence.GeneratedValue;
26 import javax.persistence.Id;
27 import javax.persistence.Table;
28
29
30
31
32 @Entity
33 @Table(name = "KRIM_ROLE_MBR_T")
34 public class LabsRoleMember extends DataObjectBase {
35
36 @Id
37 @GeneratedValue(generator = "KRIM_ROLE_MBR_ID_S")
38 @PortableSequenceGenerator(name = "KRIM_ROLE_MBR_ID_S")
39 @Column(name = "ROLE_MBR_ID")
40 private String id;
41
42 private RoleMemberBo roleMember;
43
44 @Column(name = "ROLE_ID")
45 private String roleId;
46
47 private RoleBo role;
48
49 private String roleNamespaceCode;
50
51 private String roleName;
52
53 private String roleDescription;
54
55 public String getId() {
56 return id;
57 }
58
59 public void setId(String id) {
60 this.id = id;
61 }
62
63 public RoleMemberBo getRoleMember() {
64 return roleMember;
65 }
66
67 public void setRoleMember(RoleMemberBo roleMember) {
68 this.roleMember = roleMember;
69 }
70
71 public String getRoleId() {
72 return roleId;
73 }
74
75 public void setRoleId(String roleId) {
76 this.roleId = roleId;
77 }
78
79 public RoleBo getRole() {
80 return role;
81 }
82
83 public void setRole(RoleBo role) {
84 this.role = role;
85 }
86
87 public String getRoleNamespaceCode() {
88 if (getRole() != null) {
89 roleNamespaceCode = getRole().getNamespaceCode();
90 }
91
92 return roleNamespaceCode;
93 }
94
95 public void setRoleNamespaceCode(String roleNamespaceCode) {
96 this.roleNamespaceCode = roleNamespaceCode;
97 }
98
99 public String getRoleName() {
100 if (getRole() != null) {
101 roleName = getRole().getName();
102 }
103
104 return roleName;
105 }
106
107 public void setRoleName(String roleName) {
108 this.roleName = roleName;
109 }
110
111 public String getRoleDescription() {
112 if (getRole() != null) {
113 roleDescription = getRole().getDescription();
114 }
115
116 return roleDescription;
117 }
118
119 public void setRoleDescription(String roleDescription) {
120 this.roleDescription = roleDescription;
121 }
122 }