1 package org
.argeo
.app
.ui
.people
;
3 import org
.argeo
.api
.acr
.Content
;
4 import org
.argeo
.cms
.CmsUserManager
;
5 import org
.argeo
.cms
.swt
.acr
.SwtUiProvider
;
6 import org
.eclipse
.swt
.widgets
.Composite
;
7 import org
.eclipse
.swt
.widgets
.Control
;
8 import org
.eclipse
.swt
.widgets
.Label
;
9 import org
.osgi
.service
.useradmin
.Group
;
10 import org
.osgi
.service
.useradmin
.Role
;
12 public class GroupUiProvider
implements SwtUiProvider
{
13 private CmsUserManager cmsUserManager
;
16 public Control
createUiPart(Composite parent
, Content context
) {
17 new Label(parent
, 0).setText("Group " + context
);
19 Group group
= context
.adapt(Group
.class);
20 for (Role member
: group
.getMembers()) {
21 new Label(parent
, 0).setText(member
.getName());
27 public void setCmsUserManager(CmsUserManager cmsUserManager
) {
28 this.cmsUserManager
= cmsUserManager
;