1 | |
package org.kuali.rice.kim.framework.identity.citizenship |
2 | |
|
3 | |
import org.kuali.rice.kim.api.identity.TypeContract |
4 | |
import org.kuali.rice.krad.bo.ExternalizableBusinessObject |
5 | |
import org.kuali.rice.kim.api.identity.Type |
6 | |
|
7 | |
class EntityCitizenshipStatusEbo implements TypeContract, ExternalizableBusinessObject { |
8 | |
String code; |
9 | |
String name; |
10 | |
boolean active; |
11 | |
String sortCode; |
12 | |
Long versionNumber; |
13 | |
String objectId; |
14 | |
|
15 | |
|
16 | |
|
17 | |
|
18 | |
|
19 | |
|
20 | |
|
21 | |
static Type to(EntityCitizenshipStatusEbo bo) { |
22 | 0 | if (bo == null) { return null } |
23 | 0 | return Type.Builder.create(bo).build() |
24 | |
} |
25 | |
|
26 | |
|
27 | |
|
28 | |
|
29 | |
|
30 | |
|
31 | |
static EntityCitizenshipStatusEbo from(Type immutable) { |
32 | 0 | if (immutable == null) {return null} |
33 | |
|
34 | 0 | EntityCitizenshipStatusEbo bo = new EntityCitizenshipStatusEbo() |
35 | 0 | bo.code = immutable.code |
36 | 0 | bo.name = immutable.name |
37 | 0 | bo.sortCode = immutable.sortCode |
38 | 0 | bo.active = immutable.active |
39 | 0 | bo.versionNumber = immutable.versionNumber |
40 | 0 | bo.objectId = immutable.objectId |
41 | |
|
42 | 0 | return bo; |
43 | |
} |
44 | |
|
45 | |
void refresh() { } |
46 | |
} |