+ @Override
+ public String getText(Content role) {
+ if (role.isContentClass(LdapObjs.inetOrgPerson.qName()))
+ return UserAdminUtils.getUserDisplayName(role.adapt(User.class));
+ else if (role.isContentClass(LdapObjs.organization.qName()))
+ return role.attr(LdapAttrs.o.qName());
+ else if (role.isContentClass(LdapObjs.groupOfNames.qName()))
+ return role.attr(LdapAttrs.cn.qName());
+ else
+ return null;
+ }
+
+ @Override
+ public CmsIcon getIcon(Content role) {
+ if (role.isContentClass(LdapObjs.inetOrgPerson.qName()))
+ return SuiteIcon.person;
+ else if (role.isContentClass(LdapObjs.organization.qName()))
+ return SuiteIcon.organisation;
+ else if (role.isContentClass(LdapObjs.groupOfNames.qName()))
+ return SuiteIcon.group;
+ else
+ return null;
+ }
+
+ @Override
+ public int getWidth() {
+ return 300;
+ }
+
+ });
+ usersView.addColumn((Column<Content>) (role) -> role.attr(LdapAttrs.mail.qName()));
+
+ // toolbar