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 | |
|
25 | |
|
26 | |
class GroupEbo implements GroupContract, ExternalizableBusinessObject { |
27 | |
private static final long serialVersionUID = 1L; |
28 | |
|
29 | |
String id |
30 | |
String name |
31 | |
String description |
32 | |
boolean active |
33 | |
String kimTypeId |
34 | |
String namespaceCode |
35 | |
List<GroupMember> members |
36 | |
List<KimAttributeData> attributeDetails |
37 | |
Map<String, String> attributes |
38 | |
Long versionNumber |
39 | |
String objectId |
40 | |
|
41 | |
|
42 | |
|
43 | |
|
44 | |
|
45 | |
|
46 | |
static Group to(GroupEbo bo) { |
47 | 0 | if (bo == null) { |
48 | 0 | return null |
49 | |
} |
50 | |
|
51 | 0 | return Group.Builder.create(bo).build(); |
52 | |
} |
53 | |
|
54 | |
|
55 | |
|
56 | |
|
57 | |
|
58 | |
|
59 | |
static GroupEbo from(Group im) { |
60 | 0 | if (im == null) { |
61 | 0 | return null |
62 | |
} |
63 | |
|
64 | 0 | GroupEbo bo = new GroupEbo() |
65 | 0 | bo.id = im.id |
66 | 0 | bo.namespaceCode = im.namespaceCode |
67 | 0 | bo.name = im.name |
68 | 0 | bo.description = im.description |
69 | 0 | bo.active = im.active |
70 | 0 | bo.kimTypeId = im.kimTypeId |
71 | 0 | bo.attributes = im.attributes |
72 | |
|
73 | |
|
74 | 0 | bo.versionNumber = im.versionNumber |
75 | 0 | bo.objectId = im.objectId; |
76 | |
|
77 | 0 | return bo |
78 | |
} |
79 | |
|
80 | |
|
81 | |
void refresh() { } |
82 | |
} |