com.atlassian.user.impl.ldap.properties
Class DefaultLdapSearchProperties
java.lang.Object
com.atlassian.user.impl.ldap.properties.DefaultLdapSearchProperties
- All Implemented Interfaces:
- LdapSearchProperties
public class DefaultLdapSearchProperties
- extends Object
- implements LdapSearchProperties
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultLdapSearchProperties
public DefaultLdapSearchProperties()
getBaseUserNamespace
public String getBaseUserNamespace()
- Specified by:
getBaseUserNamespace in interface LdapSearchProperties
- Returns:
- base DN of user tree in LDAP server, for example 'ou=users,dc=atlassian,dc=com'
getUserFilter
public String getUserFilter()
- Specified by:
getUserFilter in interface LdapSearchProperties
- Returns:
- LDAP search filter for users, for example '(objectClass=inetOrgPerson)'
getBaseGroupNamespace
public String getBaseGroupNamespace()
- Specified by:
getBaseGroupNamespace in interface LdapSearchProperties
- Returns:
- base DN of group tree in LDAP server, for example 'ou=groups,dc=atlassian,dc=com'
getGroupFilter
public String getGroupFilter()
- Specified by:
getGroupFilter in interface LdapSearchProperties
- Returns:
- LDAP search filter for group, for example '(objectClass=groupOfNames)'
getUsernameAttribute
public String getUsernameAttribute()
- Specified by:
getUsernameAttribute in interface LdapSearchProperties
- Returns:
- attribute name of the user identifier attribute on an LDAP user record, for example 'sAMAccountName'
getGroupnameAttribute
public String getGroupnameAttribute()
- Specified by:
getGroupnameAttribute in interface LdapSearchProperties
- Returns:
- attribute name of the group identifier attribute on an LDAP group record, for example 'cn'
getFirstnameAttribute
public String getFirstnameAttribute()
- Specified by:
getFirstnameAttribute in interface LdapSearchProperties
- Returns:
- attribute name of the first name attribute on an LDAP user record, for example 'givenName'
getSurnameAttribute
public String getSurnameAttribute()
- Specified by:
getSurnameAttribute in interface LdapSearchProperties
- Returns:
- attribute name of the surname attribute on an LDAP user record, for example 'sn'
getEmailAttribute
public String getEmailAttribute()
- Specified by:
getEmailAttribute in interface LdapSearchProperties
- Returns:
- attribute name of the email attribute on an LDAP user record, for example 'mail'
isUserSearchScopeAllDepths
public boolean isUserSearchScopeAllDepths()
- Description copied from interface:
LdapSearchProperties
- Returns
true if user searches will scan the entire LDAP tree beneath the DN specified by
LdapSearchProperties.getBaseUserNamespace() (sub-tree scope), or false if only direct children of that
DN should be scanned (one-level scope).
- Specified by:
isUserSearchScopeAllDepths in interface LdapSearchProperties
- See Also:
SearchControls.SUBTREE_SCOPE,
SearchControls.ONELEVEL_SCOPE
isGroupSearchScopeAllDepths
public boolean isGroupSearchScopeAllDepths()
- Description copied from interface:
LdapSearchProperties
- Returns
true if group searches will scan the entire LDAP tree beneath the DN specified by
LdapSearchProperties.getBaseGroupNamespace() (sub-tree scope), or false if only direct children of that
DN should be scanned (one-level scope).
- Specified by:
isGroupSearchScopeAllDepths in interface LdapSearchProperties
- See Also:
SearchControls.SUBTREE_SCOPE,
SearchControls.ONELEVEL_SCOPE
getTimeLimitMillis
public int getTimeLimitMillis()
- Specified by:
getTimeLimitMillis in interface LdapSearchProperties
- Returns:
- maximum time LDAP connection will wait for search results to return before aborting the search.
Measured in milliseconds, where 0 means wait indefinitely.
- See Also:
SearchControls.getTimeLimit()
setBaseUserNamespace
public void setBaseUserNamespace(String baseUserNamespace)
setBaseGroupNamespace
public void setBaseGroupNamespace(String baseGroupNamespace)
setUsernameAttribute
public void setUsernameAttribute(String usernameAttribute)
setGroupnameAttribute
public void setGroupnameAttribute(String groupnameAttribute)
setFirstnameAttribute
public void setFirstnameAttribute(String firstnameAttribute)
setSurnameAttribute
public void setSurnameAttribute(String surnameAttribute)
setEmailAttribute
public void setEmailAttribute(String emailAttribute)
setUserSearchScopeAllDepths
public void setUserSearchScopeAllDepths(boolean userSearchScopeAllDepths)
setGroupSearchScopeAllDepths
public void setGroupSearchScopeAllDepths(boolean groupSearchScopeAllDepths)
setTimeLimitMillis
public void setTimeLimitMillis(int timeLimitMillis)
setUserFilter
public void setUserFilter(String userFilter)
setGroupFilter
public void setGroupFilter(String groupFilter)
Copyright © 2005-2009 Atlassian Software Systems Pty Ltd. All Rights Reserved.