import static org.argeo.eclipse.ui.EclipseUiUtils.notEmpty;
-import org.argeo.cms.auth.AuthConstants;
-import org.argeo.cms.util.useradmin.UserAdminUtils;
-import org.argeo.osgi.useradmin.LdifName;
+import org.argeo.cms.util.UserAdminUtils;
+import org.argeo.naming.LdapAttrs;
+import org.argeo.node.NodeConstants;
import org.eclipse.jface.viewers.Viewer;
import org.eclipse.jface.viewers.ViewerFilter;
import org.osgi.service.useradmin.User;
private String searchString;
private boolean showSystemRole = true;
- private final String[] knownProps = { LdifName.dn.name(),
- LdifName.cn.name(), LdifName.givenName.name(), LdifName.sn.name(),
- LdifName.uid.name(), LdifName.description.name(),
- LdifName.mail.name() };
+ private final String[] knownProps = { LdapAttrs.DN, LdapAttrs.cn.name(),
+ LdapAttrs.givenName.name(), LdapAttrs.sn.name(),
+ LdapAttrs.uid.name(), LdapAttrs.description.name(),
+ LdapAttrs.mail.name() };
public void setSearchText(String s) {
// ensure that the value can be used for matching
User user = (User) element;
if (!showSystemRole
&& user.getName().matches(
- ".*(" + AuthConstants.ROLES_BASEDN + ")"))
+ ".*(" + NodeConstants.ROLES_BASEDN + ")"))
// UserAdminUtils.getProperty(user, LdifName.dn.name())
// .toLowerCase().endsWith(AuthConstants.ROLES_BASEDN))
return false;
}
return false;
}
-
-}
\ No newline at end of file
+}