]>
git.argeo.org Git - gpl/argeo-slc.git/blob - CommonNameLP.java
2d8db67d73edf956f247bfb96395af0161211ddb
1 package org
.argeo
.cms
.e4
.users
.providers
;
3 import org
.argeo
.cms
.auth
.UserAdminUtils
;
4 import org
.argeo
.util
.naming
.LdapAttrs
;
5 import org
.osgi
.service
.useradmin
.User
;
7 /** Simply declare a label provider that returns the common name of a user */
8 public class CommonNameLP
extends UserAdminAbstractLP
{
9 private static final long serialVersionUID
= 5256703081044911941L;
12 public String
getText(User user
) {
13 return UserAdminUtils
.getProperty(user
, LdapAttrs
.cn
.name());
17 public String
getToolTipText(Object element
) {
18 return UserAdminUtils
.getProperty((User
) element
, LdapAttrs
.DN
);