public interface ILdapUserDAO
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkOldPassword(String strUid,
String strOldPassword)
check if the Old Password equals the password associete to the uid
|
void |
closeConnexion(DirContext ldapContext)
Close connexion to the ldap
|
LdapUser |
getLdapUserByUid(javax.servlet.http.HttpServletRequest request,
String strUid)
Return the ldapuser if exist
|
void |
modification(LdapUser ldapUser)
Modify the attributes user into the ldap
|
DirContext |
openConnexion()
Open connexion to the ldap
|
void |
registration(LdapUser ldapUser)
Add an user into the ldap
|
boolean |
uidExit(String strUid)
Test if user exist
|
DirContext openConnexion() throws NamingException
NamingException - the namming exceptionvoid closeConnexion(DirContext ldapContext) throws NamingException
ldapContext - the ldap contextNamingException - the namming exceptionvoid registration(LdapUser ldapUser) throws NamingException
ldapUser - the user to add in ldapNamingException - the namming exceptionboolean uidExit(String strUid) throws NamingException
strUid - the uid of userNamingException - the namming exceptionboolean checkOldPassword(String strUid, String strOldPassword) throws NamingException
strUid - the uid of userstrOldPassword - the password to checkNamingException - the namming exceptionLdapUser getLdapUserByUid(javax.servlet.http.HttpServletRequest request, String strUid) throws NamingException
request - the http requeststrUid - the uid of userNamingException - the namming exceptionvoid modification(LdapUser ldapUser) throws NamingException
ldapUser - the user to add in ldapNamingException - the namming exceptionCopyright © 2017 City of Paris. All rights reserved.