1 | |
package org.kuali.rice.krms.impl.repository |
2 | |
|
3 | |
import org.kuali.rice.krad.bo.Inactivatable |
4 | |
import org.kuali.rice.krad.bo.PersistableBusinessObjectBase |
5 | |
import org.kuali.rice.krms.api.repository.type.KrmsAttributeDefinition |
6 | |
import org.kuali.rice.krms.api.repository.type.KrmsAttributeDefinitionContract |
7 | |
|
8 | |
public class KrmsAttributeDefinitionBo extends PersistableBusinessObjectBase implements KrmsAttributeDefinitionContract, Inactivatable{ |
9 | |
|
10 | |
def String id |
11 | |
def String name |
12 | |
def String namespace |
13 | |
def String label |
14 | |
def boolean active |
15 | |
def String componentName |
16 | |
|
17 | |
|
18 | |
|
19 | |
|
20 | |
|
21 | |
|
22 | |
static KrmsAttributeDefinition to(KrmsAttributeDefinitionBo bo) { |
23 | 0 | if (bo == null) { return null } |
24 | 0 | return org.kuali.rice.krms.api.repository.type.KrmsAttributeDefinition.Builder.create(bo).build() |
25 | |
} |
26 | |
|
27 | |
|
28 | |
|
29 | |
|
30 | |
|
31 | |
|
32 | |
static KrmsAttributeDefinitionBo from(KrmsAttributeDefinition im) { |
33 | 6 | if (im == null) { return null } |
34 | |
|
35 | 0 | KrmsAttributeDefinitionBo bo = new KrmsAttributeDefinitionBo() |
36 | 0 | bo.id = im.id |
37 | 0 | bo.name = im.name |
38 | 0 | bo.namespace = im.namespace |
39 | 0 | bo.label = im.label |
40 | 0 | bo.active = im.active |
41 | 0 | bo.componentName = im.componentName |
42 | 0 | bo.versionNumber = im.versionNumber |
43 | 0 | return bo |
44 | |
} |
45 | |
|
46 | |
} |