+ usersView.addColumn(new Column<Role>() {
+
+ @Override
+ public String getText(Role role) {
+ String txt = getProperty(role, LdapAttrs.o);
+ if (txt != null && !txt.equals(""))
+ return txt;
+ txt = getProperty(role, LdapAttrs.cn);
+ if (txt != null && !txt.equals(""))
+ return txt;
+ txt = UserAdminUtils.getUserDisplayName(role);
+ return txt;
+ }
+
+ @Override
+ public CmsIcon getIcon(Role role) {
+ String txt = getProperty(role, LdapAttrs.o);
+ if (txt != null && !txt.equals(""))
+ return SuiteIcon.organisation;
+ txt = getProperty(role, LdapAttrs.uid);
+ if (txt != null && !txt.equals(""))
+ return SuiteIcon.person;
+ return SuiteIcon.group;
+ }