fr.paris.lutece.plugins.selfregistration.business
Interface ILdapUserDAO

All Known Implementing Classes:
LdapUserDAO

public interface ILdapUserDAO

ILdapUserDAO Interface


Method Summary
 boolean checkOldPassword(java.lang.String strUid, java.lang.String strOldPassword)
          check if the Old Password equals the password associete to the uid
 void closeConnexion(javax.naming.directory.DirContext ldapContext)
          Close connexion to the ldap
 LdapUser getLdapUserByUid(javax.servlet.http.HttpServletRequest request, java.lang.String strUid)
          Return the ldapuser if exist
 void modification(LdapUser ldapUser)
          Modify the attributes user into the ldap
 javax.naming.directory.DirContext openConnexion()
          Open connexion to the ldap
 void registration(LdapUser ldapUser)
          Add an user into the ldap
 boolean uidExit(java.lang.String strUid)
          Test if user exist
 

Method Detail

openConnexion

javax.naming.directory.DirContext openConnexion()
                                                throws javax.naming.NamingException
Open connexion to the ldap

Returns:
the ldap context
Throws:
javax.naming.NamingException - the namming exception

closeConnexion

void closeConnexion(javax.naming.directory.DirContext ldapContext)
                    throws javax.naming.NamingException
Close connexion to the ldap

Parameters:
ldapContext - the ldap context
Throws:
javax.naming.NamingException - the namming exception

registration

void registration(LdapUser ldapUser)
                  throws javax.naming.NamingException
Add an user into the ldap

Parameters:
ldapUser - the user to add in ldap
Throws:
javax.naming.NamingException - the namming exception

uidExit

boolean uidExit(java.lang.String strUid)
                throws javax.naming.NamingException
Test if user exist

Parameters:
strUid - the uid of user
Returns:
true if user exist
Throws:
javax.naming.NamingException - the namming exception

checkOldPassword

boolean checkOldPassword(java.lang.String strUid,
                         java.lang.String strOldPassword)
                         throws javax.naming.NamingException
check if the Old Password equals the password associete to the uid

Parameters:
strUid - the uid of user
strOldPassword - the password to check
Returns:
true if the Old Password equals the password associete to the uid
Throws:
javax.naming.NamingException - the namming exception

getLdapUserByUid

LdapUser getLdapUserByUid(javax.servlet.http.HttpServletRequest request,
                          java.lang.String strUid)
                          throws javax.naming.NamingException
Return the ldapuser if exist

Parameters:
request - the http request
strUid - the uid of user
Returns:
the ldap user if exist null other
Throws:
javax.naming.NamingException - the namming exception

modification

void modification(LdapUser ldapUser)
                  throws javax.naming.NamingException
Modify the attributes user into the ldap

Parameters:
ldapUser - the user to add in ldap
Throws:
javax.naming.NamingException - the namming exception


Copyright © 2008 Mairie de Paris. All Rights Reserved.