public class LDAPConnector extends AbstractLDAPConnector implements Component
| Modifier and Type | Class and Description | 
|---|---|
static class  | 
LDAPConnector.DN
A DN 
 | 
| Modifier and Type | Field and Description | 
|---|---|
private static int | 
__LEVEL_SIZE  | 
static String | 
ROLE
The compoent role 
 | 
__DEFAULT_PAGE_SIZE, _ldapAdminPassword, _ldapAdminRelativeDN, _ldapAliasDerefMode, _ldapAuthenticationMethod, _ldapBaseDN, _ldapFollowReferrals, _ldapUrl, _ldapUseSSL, _pagingSupported| Constructor and Description | 
|---|
LDAPConnector()  | 
| Modifier and Type | Method and Description | 
|---|---|
protected int | 
_count(int pageSize,
      String name,
      String filter,
      Object[] filterArgs,
      SearchControls searchControls)
Count the number of results 
 | 
protected int | 
_count(LdapContext context)
Ccount the child node of a cocntext 
 | 
protected boolean | 
_hasResults(int pageSize,
           String name,
           String filter,
           Object[] filterArgs,
           SearchControls searchControls)
Count the number of results 
 | 
List<Map<String,String>> | 
getAttributes(String ldapDatasourceId,
             String dn)
Get the ldap attributes of a node 
 | 
Collection<LDAPConnector.DN> | 
getChildren(String ldapDatasourceId,
           String dn)
Get children DN 
 | 
_cleanup, _delayedInitialize, _getConfigParameter, _getContextEnv, _getFilter, _getRootContextEnv, _getSearchScope, _search, _search, _setPagingIfSupported, _testPagingSupported, isPagingSupported, serviceaddObjectInCache, clearCache, dispose, getObjectFromCache, initialize, isCacheEnabled, removeObjectFromCachegetLogger, setLoggerprivate static final int __LEVEL_SIZE
public LDAPConnector()
public List<Map<String,String>> getAttributes(String ldapDatasourceId, String dn) throws ProcessingException
ldapDatasourceId - The ldap datasource iddn - The dn of the ldap node to getProcessingException - If an error occurred with ldappublic Collection<LDAPConnector.DN> getChildren(String ldapDatasourceId, String dn) throws ProcessingException
ldapDatasourceId - The ldap datasource iddn - The parent DN. Can be empty to get root DN.ProcessingException - If an exception occurred while reading the ldapprotected boolean _hasResults(int pageSize, String name, String filter, Object[] filterArgs, SearchControls searchControls) throws NamingException
pageSize - The number of entries in a pagename - the name of the context or object to searchfilter - the filter expression to use for the searchfilterArgs - the array of arguments to substitute for the variables in filter. Can be null.searchControls - the search controls that control the search.NamingException - If an error occurredprotected int _count(LdapContext context) throws NamingException
context - The contextNamingException - if an error occurredprotected int _count(int pageSize, String name, String filter, Object[] filterArgs, SearchControls searchControls) throws NamingException
pageSize - The number of entries in a pagename - the name of the context or object to searchfilter - the filter expression to use for the searchfilterArgs - the array of arguments to substitute for the variables in filter. Can be null.searchControls - the search controls that control the search.NamingException - If an error occurred