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