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