1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | |
package org.kuali.rice.kew.impl.type |
17 | |
|
18 | |
import org.kuali.rice.kew.api.repository.type.KewAttributeDefinition |
19 | |
import org.kuali.rice.kew.api.repository.type.KewAttributeDefinitionContract |
20 | |
import org.kuali.rice.core.api.mo.common.active.MutableInactivatable |
21 | |
import org.kuali.rice.krad.bo.PersistableBusinessObjectBase |
22 | |
|
23 | |
public class KewAttributeDefinitionBo extends PersistableBusinessObjectBase implements KewAttributeDefinitionContract, 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 KewAttributeDefinition to(KewAttributeDefinitionBo bo) { |
39 | 0 | if (bo == null) { return null } |
40 | 0 | return org.kuali.rice.kew.api.repository.type.KewAttributeDefinition.Builder.create(bo).build() |
41 | |
} |
42 | |
|
43 | |
|
44 | |
|
45 | |
|
46 | |
|
47 | |
|
48 | |
static KewAttributeDefinitionBo from(KewAttributeDefinition im) { |
49 | 0 | if (im == null) { return null } |
50 | |
|
51 | 0 | KewAttributeDefinitionBo bo = new KewAttributeDefinitionBo() |
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 | |
|
64 | |
} |