org.jivesoftware.admin
Class LdapUserTester
java.lang.Object
org.jivesoftware.admin.LdapUserTester
public class LdapUserTester
- extends Object
Class that assists during the testing of the user-ldap mapping.
- Author:
- Gaston Dombiak
Method Summary |
Map<String,String> |
getAttributes(String username)
Returns a list of attributes and their LDAP values found in LDAP for the specified username. |
List<String> |
getSample(int maxSample)
Returns a list of usernames with a sample of the users found in LDAP. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NAME
public static final String NAME
- Constants to access user properties
- See Also:
- Constant Field Values
EMAIL
public static final String EMAIL
- See Also:
- Constant Field Values
FULL_NAME
public static final String FULL_NAME
- See Also:
- Constant Field Values
NICKNAME
public static final String NICKNAME
- See Also:
- Constant Field Values
BIRTHDAY
public static final String BIRTHDAY
- See Also:
- Constant Field Values
PHOTO
public static final String PHOTO
- See Also:
- Constant Field Values
HOME_STREET
public static final String HOME_STREET
- See Also:
- Constant Field Values
HOME_CITY
public static final String HOME_CITY
- See Also:
- Constant Field Values
HOME_STATE
public static final String HOME_STATE
- See Also:
- Constant Field Values
HOME_ZIP
public static final String HOME_ZIP
- See Also:
- Constant Field Values
HOME_COUNTRY
public static final String HOME_COUNTRY
- See Also:
- Constant Field Values
HOME_PHONE
public static final String HOME_PHONE
- See Also:
- Constant Field Values
HOME_MOBILE
public static final String HOME_MOBILE
- See Also:
- Constant Field Values
HOME_FAX
public static final String HOME_FAX
- See Also:
- Constant Field Values
HOME_PAGER
public static final String HOME_PAGER
- See Also:
- Constant Field Values
BUSINESS_STREET
public static final String BUSINESS_STREET
- See Also:
- Constant Field Values
BUSINESS_CITY
public static final String BUSINESS_CITY
- See Also:
- Constant Field Values
BUSINESS_STATE
public static final String BUSINESS_STATE
- See Also:
- Constant Field Values
BUSINESS_ZIP
public static final String BUSINESS_ZIP
- See Also:
- Constant Field Values
BUSINESS_COUNTRY
public static final String BUSINESS_COUNTRY
- See Also:
- Constant Field Values
BUSINESS_JOB_TITLE
public static final String BUSINESS_JOB_TITLE
- See Also:
- Constant Field Values
BUSINESS_DEPARTMENT
public static final String BUSINESS_DEPARTMENT
- See Also:
- Constant Field Values
BUSINESS_PHONE
public static final String BUSINESS_PHONE
- See Also:
- Constant Field Values
BUSINESS_MOBILE
public static final String BUSINESS_MOBILE
- See Also:
- Constant Field Values
BUSINESS_FAX
public static final String BUSINESS_FAX
- See Also:
- Constant Field Values
BUSINESS_PAGER
public static final String BUSINESS_PAGER
- See Also:
- Constant Field Values
LdapUserTester
public LdapUserTester(LdapManager manager,
LdapUserProfile profile)
getSample
public List<String> getSample(int maxSample)
throws NamingException
- Returns a list of usernames with a sample of the users found in LDAP.
- Parameters:
maxSample
- the max size of the sample to return.
- Returns:
- a list of usernames with a sample of the users found in LDAP.
- Throws:
NamingException
- if something goes wrong....
getAttributes
public Map<String,String> getAttributes(String username)
- Returns a list of attributes and their LDAP values found in LDAP for the specified username.
- Parameters:
username
- the username of the user to get his attributes from LDAP.
- Returns:
- a list of attributes and their LDAP values found in LDAP for the specified username.
Copyright © 2003-2007 Jive Software.