1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | |
package org.kuali.rice.kim.bo.entity.impl; |
17 | |
|
18 | |
import java.util.LinkedHashMap; |
19 | |
|
20 | |
import javax.persistence.Column; |
21 | |
import javax.persistence.Entity; |
22 | |
import javax.persistence.Id; |
23 | |
import javax.persistence.Table; |
24 | |
|
25 | |
import org.hibernate.annotations.Type; |
26 | |
import org.kuali.rice.kim.bo.entity.KimPrincipal; |
27 | |
import org.kuali.rice.kns.bo.PersistableBusinessObjectBase; |
28 | |
|
29 | |
|
30 | |
|
31 | |
|
32 | |
@Entity |
33 | |
@Table(name="KRIM_PRNCPL_T") |
34 | 0 | public class KimPrincipalImpl extends PersistableBusinessObjectBase implements KimPrincipal { |
35 | |
|
36 | |
private static final long serialVersionUID = 4480581610252159266L; |
37 | |
|
38 | |
@Id |
39 | |
@Column(name="PRNCPL_ID") |
40 | |
private String principalId; |
41 | |
|
42 | |
@Column(name="PRNCPL_NM") |
43 | |
private String principalName; |
44 | |
|
45 | |
@Column(name="ENTITY_ID") |
46 | |
private String entityId; |
47 | |
|
48 | |
@Column(name="PRNCPL_PSWD") |
49 | |
private String password; |
50 | |
|
51 | |
@Column(name="ACTV_IND") |
52 | |
@Type(type="yes_no") |
53 | |
private boolean active; |
54 | |
|
55 | |
@Override |
56 | |
protected LinkedHashMap toStringMapper() { |
57 | 0 | LinkedHashMap m = new LinkedHashMap(); |
58 | 0 | m.put( "principalId", this.principalId ); |
59 | 0 | m.put( "principalName", this.principalName ); |
60 | 0 | m.put( "entityId", this.entityId ); |
61 | 0 | return m; |
62 | |
} |
63 | |
|
64 | |
public String getPrincipalId() { |
65 | 0 | return this.principalId; |
66 | |
} |
67 | |
|
68 | |
public void setPrincipalId(String principalId) { |
69 | 0 | this.principalId = principalId; |
70 | 0 | } |
71 | |
|
72 | |
public String getPrincipalName() { |
73 | 0 | return this.principalName; |
74 | |
} |
75 | |
|
76 | |
public void setPrincipalName(String principalName) { |
77 | 0 | this.principalName = principalName.toLowerCase(); |
78 | 0 | } |
79 | |
|
80 | |
public String getEntityId() { |
81 | 0 | return this.entityId; |
82 | |
} |
83 | |
|
84 | |
public void setEntityId(String entityId) { |
85 | 0 | this.entityId = entityId; |
86 | 0 | } |
87 | |
|
88 | |
public String getPassword() { |
89 | 0 | return this.password; |
90 | |
} |
91 | |
|
92 | |
public void setPassword(String password) { |
93 | 0 | this.password = password; |
94 | 0 | } |
95 | |
|
96 | |
public boolean isActive() { |
97 | 0 | return this.active; |
98 | |
} |
99 | |
|
100 | |
public void setActive(boolean active) { |
101 | 0 | this.active = active; |
102 | 0 | } |
103 | |
|
104 | |
} |