1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | |
|
17 | |
package org.kuali.rice.kim.framework.group |
18 | |
|
19 | |
import org.kuali.rice.kim.api.common.attribute.KimAttributeData |
20 | |
import org.kuali.rice.kim.api.group.Group |
21 | |
import org.kuali.rice.kim.api.group.GroupContract |
22 | |
import org.kuali.rice.kim.api.group.GroupMember |
23 | |
import org.kuali.rice.krad.bo.ExternalizableBusinessObject |
24 | |
import org.kuali.rice.core.api.mo.common.Attributes |
25 | |
|
26 | |
|
27 | |
class GroupEbo implements GroupContract, ExternalizableBusinessObject { |
28 | |
private static final long serialVersionUID = 1L; |
29 | |
|
30 | |
String id |
31 | |
String name |
32 | |
String description |
33 | |
boolean active |
34 | |
String kimTypeId |
35 | |
String namespaceCode |
36 | |
List<GroupMember> members |
37 | |
List<KimAttributeData> attributeDetails |
38 | |
Attributes attributes |
39 | |
Long versionNumber |
40 | |
String objectId |
41 | |
|
42 | |
|
43 | |
|
44 | |
|
45 | |
|
46 | |
|
47 | |
static Group to(GroupEbo bo) { |
48 | 0 | if (bo == null) { |
49 | 0 | return null |
50 | |
} |
51 | |
|
52 | 0 | return Group.Builder.create(bo).build(); |
53 | |
} |
54 | |
|
55 | |
|
56 | |
|
57 | |
|
58 | |
|
59 | |
|
60 | |
static GroupEbo from(Group im) { |
61 | 0 | if (im == null) { |
62 | 0 | return null |
63 | |
} |
64 | |
|
65 | 0 | GroupEbo bo = new GroupEbo() |
66 | 0 | bo.id = im.id |
67 | 0 | bo.namespaceCode = im.namespaceCode |
68 | 0 | bo.name = im.name |
69 | 0 | bo.description = im.description |
70 | 0 | bo.active = im.active |
71 | 0 | bo.kimTypeId = im.kimTypeId |
72 | 0 | bo.attributes = im.attributes |
73 | |
|
74 | |
|
75 | 0 | bo.versionNumber = im.versionNumber |
76 | 0 | bo.objectId = im.objectId; |
77 | |
|
78 | 0 | return bo |
79 | |
} |
80 | |
|
81 | |
|
82 | |
void refresh() { } |
83 | |
} |