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 java.lang.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 java.lang.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 java.lang.String getUserFilter()
- Specified by:
getUserFilter
in interface LdapSearchProperties
- Returns:
- LDAP search filter for users, for example '(objectClass=inetOrgPerson)'
getBaseGroupNamespace
public java.lang.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 java.lang.String getGroupFilter()
- Specified by:
getGroupFilter
in interface LdapSearchProperties
- Returns:
- LDAP search filter for group, for example '(objectClass=groupOfNames)'
getUsernameAttribute
public java.lang.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 java.lang.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 java.lang.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 java.lang.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 java.lang.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(java.lang.String baseUserNamespace)
setBaseGroupNamespace
public void setBaseGroupNamespace(java.lang.String baseGroupNamespace)
setUsernameAttribute
public void setUsernameAttribute(java.lang.String usernameAttribute)
setGroupnameAttribute
public void setGroupnameAttribute(java.lang.String groupnameAttribute)
setFirstnameAttribute
public void setFirstnameAttribute(java.lang.String firstnameAttribute)
setSurnameAttribute
public void setSurnameAttribute(java.lang.String surnameAttribute)
setEmailAttribute
public void setEmailAttribute(java.lang.String emailAttribute)
setUserSearchScopeAllDepths
public void setUserSearchScopeAllDepths(boolean userSearchScopeAllDepths)
setGroupSearchScopeAllDepths
public void setGroupSearchScopeAllDepths(boolean groupSearchScopeAllDepths)
setTimeLimitMillis
public void setTimeLimitMillis(int timeLimitMillis)
setUserFilter
public void setUserFilter(java.lang.String userFilter)
setGroupFilter
public void setGroupFilter(java.lang.String groupFilter)
Copyright © 2005-2007 Atlassian Software Systems Pty Ltd. All Rights Reserved.