fr.paris.lutece.plugins.adminauthenticationdatabase
Class AdminDatabaseUserDAO

java.lang.Object
  extended by fr.paris.lutece.plugins.adminauthenticationdatabase.AdminDatabaseUserDAO

public class AdminDatabaseUserDAO
extends java.lang.Object

This class provides Data Access methods for AdminDatabaseUser objects


Field Summary
static int INVALID_PASSWORD
           
static java.lang.String SQL_QUERY_CHECK_PASSWORD
           
static java.lang.String SQL_QUERY_LOAD_USER
           
static int USER_NOTFOUND
           
static int USER_OK
           
 
Constructor Summary
AdminDatabaseUserDAO()
           
 
Method Summary
 int checkPassword(java.lang.String strAccessCode, java.lang.String strPassword)
          Check the password of a given user into the table provided by the database authentication module
 AdminDatabaseUser load(java.lang.String strAccessCode, fr.paris.lutece.portal.business.user.authentication.AdminAuthentication authenticationService)
          load the data of an user from the table provided by the database authentication module This only provides data specific to the database authentication module.
 java.util.Collection<AdminDatabaseUser> selectAllDatabaseUsers(java.lang.String strLastName, java.lang.String strFirstName, java.lang.String strEmail, fr.paris.lutece.portal.business.user.authentication.AdminAuthentication authenticationService)
          load the data of an user from the table provided by the database authentication module with criterias
 fr.paris.lutece.portal.business.user.AdminUser selectUserPublicData(java.lang.String strAccessCode, fr.paris.lutece.portal.business.user.authentication.AdminAuthentication authenticationService)
          load the data of an user from the table provided by the database authentication module This provides public data specific to the database authentication module.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

USER_NOTFOUND

public static final int USER_NOTFOUND
See Also:
Constant Field Values

INVALID_PASSWORD

public static final int INVALID_PASSWORD
See Also:
Constant Field Values

USER_OK

public static final int USER_OK
See Also:
Constant Field Values

SQL_QUERY_CHECK_PASSWORD

public static final java.lang.String SQL_QUERY_CHECK_PASSWORD
See Also:
Constant Field Values

SQL_QUERY_LOAD_USER

public static final java.lang.String SQL_QUERY_LOAD_USER
See Also:
Constant Field Values
Constructor Detail

AdminDatabaseUserDAO

public AdminDatabaseUserDAO()
Method Detail

checkPassword

public int checkPassword(java.lang.String strAccessCode,
                         java.lang.String strPassword)
Check the password of a given user into the table provided by the database authentication module

Parameters:
strAccessCode - The name of the user
strPassword - the user password
Returns:
the the error number

load

public AdminDatabaseUser load(java.lang.String strAccessCode,
                              fr.paris.lutece.portal.business.user.authentication.AdminAuthentication authenticationService)
load the data of an user from the table provided by the database authentication module This only provides data specific to the database authentication module.

Parameters:
strAccessCode - The access code of user
authenticationService - The AdminAuthentication
Returns:
user The instance of an AdminDatabaseUser's object

selectAllDatabaseUsers

public java.util.Collection<AdminDatabaseUser> selectAllDatabaseUsers(java.lang.String strLastName,
                                                                      java.lang.String strFirstName,
                                                                      java.lang.String strEmail,
                                                                      fr.paris.lutece.portal.business.user.authentication.AdminAuthentication authenticationService)
load the data of an user from the table provided by the database authentication module with criterias

Parameters:
strLastName - The last name of user
strFirstName - The first name of user
strEmail - The email of user
authenticationService - The AdminAuthentication
Returns:
user The instance of an AdminDatabaseUser's object

selectUserPublicData

public fr.paris.lutece.portal.business.user.AdminUser selectUserPublicData(java.lang.String strAccessCode,
                                                                           fr.paris.lutece.portal.business.user.authentication.AdminAuthentication authenticationService)
load the data of an user from the table provided by the database authentication module This provides public data specific to the database authentication module.

Parameters:
strAccessCode - The access code of user
authenticationService - The AdminAuthentication
Returns:
user The instance of an AdminDatabaseUser's object


Copyright © 2008 Mairie de Paris. All Rights Reserved.