X-Git-Url: http://git.argeo.org/?a=blobdiff_plain;ds=sidebyside;f=org.argeo.security.ui.admin%2Fsrc%2Forg%2Fargeo%2Fsecurity%2Fui%2Fadmin%2Finternal%2Fproviders%2FUserAdminAbstractLP.java;h=2b0a13db79da99e006aff2a9d1b460c233d06c46;hb=8260f4470f514ea347ca53f5b4dfc632c4a4de66;hp=89901fa7c49c1c17675cc8eb5b5d349ea4a0c0a2;hpb=f0be5ec381492eff23d4576ee4122734af4ad877;p=lgpl%2Fargeo-commons.git diff --git a/org.argeo.security.ui.admin/src/org/argeo/security/ui/admin/internal/providers/UserAdminAbstractLP.java b/org.argeo.security.ui.admin/src/org/argeo/security/ui/admin/internal/providers/UserAdminAbstractLP.java index 89901fa7c..2b0a13db7 100644 --- a/org.argeo.security.ui.admin/src/org/argeo/security/ui/admin/internal/providers/UserAdminAbstractLP.java +++ b/org.argeo.security.ui.admin/src/org/argeo/security/ui/admin/internal/providers/UserAdminAbstractLP.java @@ -3,9 +3,8 @@ package org.argeo.security.ui.admin.internal.providers; import javax.naming.InvalidNameException; import javax.naming.ldap.LdapName; -import org.argeo.ArgeoException; -import org.argeo.osgi.useradmin.LdifName; -import org.argeo.security.ui.admin.internal.UiAdminUtils; +import org.argeo.cms.CmsException; +import org.argeo.cms.util.useradmin.UserAdminUtils; import org.eclipse.jface.resource.JFaceResources; import org.eclipse.jface.viewers.ColumnLabelProvider; import org.eclipse.swt.SWT; @@ -27,9 +26,8 @@ public abstract class UserAdminAbstractLP extends ColumnLabelProvider { public Font getFont(Object element) { // Self as bold try { - LdapName selfUserName = UiAdminUtils.getLdapName(); - String userName = UiAdminUtils.getProperty((User) element, - LdifName.dn.name()); + LdapName selfUserName = UserAdminUtils.getCurrentUserLdapName(); + String userName = ((User) element).getName(); LdapName userLdapName = new LdapName(userName); if (userLdapName.equals(selfUserName)) { if (bold == null) @@ -39,7 +37,7 @@ public abstract class UserAdminAbstractLP extends ColumnLabelProvider { return bold; } } catch (InvalidNameException e) { - throw new ArgeoException("cannot parse dn for " + element, e); + throw new CmsException("cannot parse dn for " + element, e); } // Disabled as Italic