1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | |
package org.kuali.rice.kim.bo.reference.impl; |
17 | |
|
18 | |
import javax.persistence.AttributeOverride; |
19 | |
import javax.persistence.AttributeOverrides; |
20 | |
import javax.persistence.Column; |
21 | |
import javax.persistence.Entity; |
22 | |
import javax.persistence.Table; |
23 | |
|
24 | |
import org.hibernate.annotations.Type; |
25 | |
import org.kuali.rice.kim.bo.reference.ExternalIdentifierType; |
26 | |
import org.kuali.rice.kim.bo.reference.dto.ExternalIdentifierTypeInfo; |
27 | |
|
28 | |
|
29 | |
|
30 | |
|
31 | |
@Entity |
32 | |
@Table(name="KRIM_EXT_ID_TYP_T") |
33 | |
@AttributeOverrides({ |
34 | |
@AttributeOverride(name="code",column=@Column(name="EXT_ID_TYP_CD")), |
35 | |
@AttributeOverride(name="name",column=@Column(name="NM")) |
36 | |
}) |
37 | 0 | public class ExternalIdentifierTypeImpl extends KimCodeBase implements ExternalIdentifierType { |
38 | |
|
39 | |
private static final long serialVersionUID = 1L; |
40 | |
|
41 | |
@Type(type="yes_no") |
42 | |
@Column(name="ENCR_REQ_IND") |
43 | |
protected boolean encryptionRequired; |
44 | |
|
45 | |
|
46 | |
|
47 | |
|
48 | |
public String getExternalIdentifierTypeCode() { |
49 | 0 | return getCode(); |
50 | |
} |
51 | |
|
52 | |
|
53 | |
|
54 | |
|
55 | |
public String getExternalIdentifierTypeName() { |
56 | 0 | return getName(); |
57 | |
} |
58 | |
|
59 | |
|
60 | |
|
61 | |
|
62 | |
public void setExternalIdentifierTypeCode(String externalIdentifierTypeCode) { |
63 | 0 | setCode(externalIdentifierTypeCode); |
64 | 0 | } |
65 | |
|
66 | |
|
67 | |
|
68 | |
|
69 | |
public void setExternalIdentifierTypeName(String externalIdentifierTypeName) { |
70 | 0 | setName(externalIdentifierTypeName); |
71 | 0 | } |
72 | |
|
73 | |
public boolean isEncryptionRequired() { |
74 | 0 | return this.encryptionRequired; |
75 | |
} |
76 | |
|
77 | |
public void setEncryptionRequired(boolean encryptionRequired) { |
78 | 0 | this.encryptionRequired = encryptionRequired; |
79 | 0 | } |
80 | |
|
81 | |
public ExternalIdentifierTypeInfo toInfo() { |
82 | 0 | ExternalIdentifierTypeInfo info = new ExternalIdentifierTypeInfo(); |
83 | 0 | info.setCode(code); |
84 | 0 | info.setName(name); |
85 | 0 | info.setActive(active); |
86 | 0 | info.setEncryptionRequired(encryptionRequired); |
87 | 0 | info.setDisplaySortCode(displaySortCode); |
88 | 0 | return info; |
89 | |
} |
90 | |
} |