fr.paris.lutece.portal.business.user.authentication
Class LuteceDefaultAdminUserDAO

java.lang.Object
  extended by fr.paris.lutece.portal.business.user.authentication.LuteceDefaultAdminUserDAO
All Implemented Interfaces:
ILuteceDefaultAdminUserDAO

public class LuteceDefaultAdminUserDAO
extends Object
implements ILuteceDefaultAdminUserDAO

This class provides Data Access methods for LuteceDefaultAdminUser objects


Field Summary
static int INVALID_PASSWORD
           
static int USER_NOTFOUND
           
static int USER_OK
           
 
Constructor Summary
LuteceDefaultAdminUserDAO()
           
 
Method Summary
 int checkPassword(String strAccessCode, String strPassword)
          Check the password of a given user into the table provided by the database authentication module
 LuteceDefaultAdminUser load(String strAccessCode, 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.
 void updateResetPassword(LuteceDefaultAdminUser user, boolean bIsPasswordReset)
          Set the reset password attribute of the user
 
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
Constructor Detail

LuteceDefaultAdminUserDAO

public LuteceDefaultAdminUserDAO()
Method Detail

checkPassword

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

Specified by:
checkPassword in interface ILuteceDefaultAdminUserDAO
Parameters:
strAccessCode - The name of the user
strPassword - the user password
Returns:
the the error number

load

public LuteceDefaultAdminUser load(String strAccessCode,
                                   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.

Specified by:
load in interface ILuteceDefaultAdminUserDAO
Parameters:
strAccessCode - The access code of user
authenticationService - The AdminAuthentication
Returns:
user The instance of an LuteceDefaultAdminUser's object

updateResetPassword

public void updateResetPassword(LuteceDefaultAdminUser user,
                                boolean bIsPasswordReset)
Set the reset password attribute of the user

Specified by:
updateResetPassword in interface ILuteceDefaultAdminUserDAO
Parameters:
user - User to update
bIsPasswordReset - New value of the reset password attribute


Copyright © 2014 Mairie de Paris. All Rights Reserved.