1 | |
package org.kuali.rice.kim.framework.role |
2 | |
|
3 | |
import org.kuali.rice.kim.api.role.Role |
4 | |
import org.kuali.rice.kim.api.role.RoleContract |
5 | |
import org.kuali.rice.krad.bo.ExternalizableBusinessObject |
6 | |
|
7 | |
class RoleEbo implements RoleContract, ExternalizableBusinessObject { |
8 | |
private static final long serialVersionUID = 1L; |
9 | |
|
10 | |
String id; |
11 | |
String name; |
12 | |
String description; |
13 | |
boolean active; |
14 | |
String kimTypeId; |
15 | |
String namespaceCode; |
16 | |
Long versionNumber |
17 | |
|
18 | |
static Role to(RoleEbo ebo) { |
19 | 0 | if (ebo == null) { return null} |
20 | 0 | return Role.Builder.create(ebo).build(); |
21 | |
} |
22 | |
|
23 | |
static RoleEbo from(Role im) { |
24 | 0 | if (im == null) {return null} |
25 | 0 | RoleEbo ebo = new RoleEbo( |
26 | |
id: im.id, |
27 | |
name: im.name, |
28 | |
description: im.description, |
29 | |
active : im.active, |
30 | |
kimTypeId : im.kimTypeId, |
31 | |
namespaceCode : im.namespaceCode, |
32 | |
versionNumber : im.versionNumber |
33 | |
) |
34 | 0 | return ebo; |
35 | |
} |
36 | |
|
37 | |
void refresh() {} |
38 | |
} |