public class LdapUserDirectoryChecker extends AbstractLogEnabled implements ParameterChecker, Serviceable
Modifier and Type | Field and Description |
---|---|
private LDAPDataSourceManager |
_ldapDataSourceManager
The LDAP data source manager
|
private ServiceManager |
_manager
The service manager
|
Constructor and Description |
---|
LdapUserDirectoryChecker() |
Modifier and Type | Method and Description |
---|---|
private void |
_cleanup(Context context,
NamingEnumeration result) |
private Map<String,Object> |
_getAttributes(SearchResult entry,
String usersLoginAttribute,
String usersFirstnameAttribute,
String usersLastnameAttribute,
String usersEmailAttribute,
boolean userEmailIsMandatory) |
private Hashtable<String,String> |
_getContextEnv(AbstractDataSourceManager.DataSourceDefinition ldapDefinition) |
private SearchControls |
_getSearchConstraint(int maxResults,
String usersFirstnameAttribute,
String usersLoginAttribute,
String usersLastnameAttribute,
String usersEmailAttribute,
int usersSearchScope) |
void |
check(List<String> values)
Checks the validity of the parameters.
|
void |
service(ServiceManager manager) |
getLogger, setLogger
private ServiceManager _manager
private LDAPDataSourceManager _ldapDataSourceManager
public LdapUserDirectoryChecker()
public void service(ServiceManager manager) throws ServiceException
service
in interface Serviceable
ServiceException
public void check(List<String> values) throws ParameterCheckerTestFailureException
ParameterChecker
check
in interface ParameterChecker
values
- the values to testParameterCheckerTestFailureException
- if the test failedprivate Hashtable<String,String> _getContextEnv(AbstractDataSourceManager.DataSourceDefinition ldapDefinition)
private SearchControls _getSearchConstraint(int maxResults, String usersFirstnameAttribute, String usersLoginAttribute, String usersLastnameAttribute, String usersEmailAttribute, int usersSearchScope)
private Map<String,Object> _getAttributes(SearchResult entry, String usersLoginAttribute, String usersFirstnameAttribute, String usersLastnameAttribute, String usersEmailAttribute, boolean userEmailIsMandatory) throws NamingException
NamingException
private void _cleanup(Context context, NamingEnumeration result) throws NamingException
NamingException