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