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.api.identity.principal.PrincipalContract;
19 import org.kuali.rice.krad.bo.DataObjectBase;
20 import org.kuali.rice.krad.data.jpa.PortableSequenceGenerator;
21 import org.kuali.rice.krad.data.jpa.converters.BooleanYNConverter;
22
23 import javax.persistence.Column;
24 import javax.persistence.Convert;
25 import javax.persistence.Entity;
26 import javax.persistence.GeneratedValue;
27 import javax.persistence.Id;
28 import javax.persistence.Table;
29 import javax.persistence.Transient;
30 @Entity
31 @Table(name = "KRIM_PRNCPL_T")
32
33 public class LabsUserControl extends DataObjectBase implements PrincipalContract {
34
35 @Transient
36 private String myPrincipalName;
37 @Transient
38 private String myPersonName;
39
40 private static final long serialVersionUID = 1L;
41
42 @PortableSequenceGenerator(name = "KRIM_PRNCPL_ID_S")
43 @GeneratedValue(generator = "KRIM_PRNCPL_ID_S")
44 @Id
45 @Column(name = "PRNCPL_ID")
46 private String principalId;
47
48 @Column(name = "PRNCPL_NM")
49 private String principalName;
50
51 @Column(name = "ENTITY_ID")
52 private String entityId;
53
54 @Column(name = "PRNCPL_PSWD")
55 private String password;
56
57 @Column(name = "ACTV_IND")
58 @Convert(converter = BooleanYNConverter.class)
59 private boolean active;
60
61 @Override
62 public String getPrincipalId() {
63 return principalId;
64 }
65
66 public void setPrincipalId(String principalId) {
67 this.principalId = principalId;
68 }
69
70 @Override
71 public String getPrincipalName() {
72 return principalName;
73 }
74
75 public void setPrincipalName(String principalName) {
76 this.principalName = principalName;
77 }
78
79 @Override
80 public String getEntityId() {
81 return entityId;
82 }
83
84 public void setEntityId(String entityId) {
85 this.entityId = entityId;
86 }
87
88 public String getPassword() {
89 return password;
90 }
91
92 public void setPassword(String password) {
93 this.password = password;
94 }
95
96 public boolean getActive() {
97 return active;
98 }
99
100 @Override
101 public boolean isActive() {
102 return active;
103 }
104
105 public void setActive(boolean active) {
106 this.active = active;
107 }
108
109 public String getMyPrincipalName() {
110 return myPrincipalName;
111 }
112
113 public void setMyPrincipalName(String myPrincipalName) {
114 this.myPrincipalName = myPrincipalName;
115 }
116
117 public String getMyPersonName() {
118 return myPersonName;
119 }
120
121 public void setMyPersonName(String myPersonName) {
122 this.myPersonName = myPersonName;
123 }
124 }