1 | |
package org.kuali.rice.krms.impl.repository |
2 | |
|
3 | |
import org.kuali.rice.krad.bo.PersistableBusinessObjectBase |
4 | |
import org.kuali.rice.krms.api.repository.term.TermParameterDefinition; |
5 | |
import org.kuali.rice.krms.api.repository.term.TermParameterDefinitionContract; |
6 | |
|
7 | |
public class TermParameterBo extends PersistableBusinessObjectBase implements TermParameterDefinitionContract{ |
8 | |
|
9 | |
def String id |
10 | |
def String termId |
11 | |
def String name |
12 | |
def String value |
13 | |
|
14 | |
|
15 | |
|
16 | |
|
17 | |
|
18 | |
|
19 | |
static TermParameterDefinition to(TermParameterBo bo) { |
20 | 0 | if (bo == null) { return null } |
21 | 0 | return org.kuali.rice.krms.api.repository.term.TermParameterDefinition.Builder.create(bo).build() |
22 | |
} |
23 | |
|
24 | |
|
25 | |
|
26 | |
|
27 | |
|
28 | |
|
29 | |
static TermParameterBo from(TermParameterDefinition im) { |
30 | 0 | if (im == null) { return null } |
31 | |
|
32 | 0 | TermParameterBo bo = new TermParameterBo() |
33 | 0 | bo.id = im.id |
34 | 0 | bo.termId = im.termId |
35 | 0 | bo.name = im.name |
36 | 0 | bo.value = im.value |
37 | 0 | bo.versionNumber = im.versionNumber |
38 | |
|
39 | 0 | return bo |
40 | |
} |
41 | |
|
42 | |
} |