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