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