1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | |
|
17 | |
package org.kuali.rice.kim.impl.type |
18 | |
|
19 | |
import org.kuali.rice.kim.api.type.KimTypeAttribute |
20 | |
import org.kuali.rice.kim.api.type.KimTypeAttributeContract |
21 | |
import org.kuali.rice.kim.impl.common.attribute.KimAttributeBo |
22 | |
import org.kuali.rice.krad.bo.PersistableBusinessObjectBase |
23 | |
|
24 | |
class KimTypeAttributeBo extends PersistableBusinessObjectBase implements KimTypeAttributeContract { |
25 | |
String id |
26 | |
String sortCode |
27 | |
String kimAttributeId |
28 | |
KimAttributeBo kimAttribute |
29 | |
String kimTypeId |
30 | |
boolean active |
31 | |
|
32 | |
|
33 | |
|
34 | |
|
35 | |
|
36 | |
|
37 | |
static KimTypeAttribute to(KimTypeAttributeBo bo) { |
38 | 0 | if (bo == null) { |
39 | 0 | return null |
40 | |
} |
41 | |
|
42 | 0 | return KimTypeAttribute.Builder.create(bo).build(); |
43 | |
} |
44 | |
|
45 | |
|
46 | |
|
47 | |
|
48 | |
|
49 | |
|
50 | |
static KimTypeAttributeBo from(KimTypeAttribute im) { |
51 | 0 | if (im == null) { |
52 | 0 | return null |
53 | |
} |
54 | |
|
55 | 0 | KimTypeAttributeBo bo = new KimTypeAttributeBo() |
56 | 0 | bo.id = im.id |
57 | 0 | bo.sortCode = im.sortCode |
58 | 0 | bo.kimAttributeId = im.kimAttribute.id |
59 | 0 | bo.kimAttribute = KimAttributeBo.from(im.kimAttribute) |
60 | 0 | bo.kimTypeId = im.kimTypeId |
61 | 0 | bo.active = im.active |
62 | 0 | bo.versionNumber = im.versionNumber |
63 | 0 | bo.objectId = im.objectId |
64 | |
|
65 | 0 | return bo |
66 | |
} |
67 | |
|
68 | |
KimAttributeBo getKimAttribute() { |
69 | 0 | return kimAttribute; |
70 | |
} |
71 | |
} |