1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | |
|
17 | |
|
18 | |
|
19 | |
|
20 | |
|
21 | |
|
22 | |
package org.kuali.rice.location.framework.country |
23 | |
|
24 | |
import org.kuali.rice.krad.bo.ExternalizableBusinessObject |
25 | |
|
26 | |
import org.kuali.rice.location.api.country.Country |
27 | |
import org.kuali.rice.location.api.country.CountryContract |
28 | |
import org.kuali.rice.core.api.mo.common.active.MutableInactivatable |
29 | |
|
30 | |
|
31 | |
class CountryEbo implements MutableInactivatable, CountryContract, ExternalizableBusinessObject { |
32 | |
def String code; |
33 | |
def String alternateCode; |
34 | |
def String name; |
35 | |
def boolean restricted; |
36 | |
def boolean active; |
37 | |
def Long versionNumber |
38 | |
|
39 | |
|
40 | |
|
41 | |
|
42 | |
|
43 | |
|
44 | |
static Country to(CountryEbo bo) { |
45 | 0 | if (bo == null) { return null } |
46 | 0 | return Country.Builder.create(bo).build() |
47 | |
} |
48 | |
|
49 | |
|
50 | |
|
51 | |
|
52 | |
|
53 | |
|
54 | |
static CountryEbo from(Country immutable) { |
55 | 0 | if (immutable == null) {return null} |
56 | |
|
57 | 0 | CountryEbo bo = new CountryEbo() |
58 | 0 | bo.code = immutable.code |
59 | 0 | bo.alternateCode = immutable.alternateCode |
60 | 0 | bo.name = immutable.name |
61 | 0 | bo.restricted = immutable.restricted |
62 | 0 | bo.active = immutable.active |
63 | 0 | bo.versionNumber = immutable.versionNumber |
64 | |
|
65 | 0 | return bo; |
66 | |
} |
67 | |
|
68 | |
void refresh() { } |
69 | |
} |