fr.paris.lutece.plugins.mylutece.modules.directory.authentication.business
Class MyluteceDirectoryUserDAO

java.lang.Object
  extended by fr.paris.lutece.plugins.mylutece.modules.directory.authentication.business.MyluteceDirectoryUserDAO
All Implemented Interfaces:
IMyluteceDirectoryUserDAO

public final class MyluteceDirectoryUserDAO
extends java.lang.Object
implements IMyluteceDirectoryUserDAO

This class provides Data Access methods for directoryUser objects


Method Summary
 boolean checkPassword(java.lang.String strLogin, java.lang.String strPassword, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Check the password for a DirectoryUser
 void delete(MyluteceDirectoryUser directoryUser, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Delete a record from the table
 void insert(MyluteceDirectoryUser directoryUser, java.lang.String strPassword, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Insert a new record in the table.
 MyluteceDirectoryUser load(int nIdRecord, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load the data of DirectoryUser from the table
 java.util.Collection<MyluteceDirectoryUser> selectDirectoryUserList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load the list of directoryUsers
 java.util.Collection<MyluteceDirectoryUser> selectDirectoryUserListForLogin(java.lang.String strLogin, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load the list of DirectoryUsers for a login
 java.lang.String selectPasswordByPrimaryKey(int nIdRecord, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load the password of the specified user
 void store(MyluteceDirectoryUser directoryUser, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Update the record in the table
 void updatePassword(MyluteceDirectoryUser directoryUser, java.lang.String strNewPassword, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Update the record in the table
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

insert

public void insert(MyluteceDirectoryUser directoryUser,
                   java.lang.String strPassword,
                   fr.paris.lutece.portal.service.plugin.Plugin plugin)
Description copied from interface: IMyluteceDirectoryUserDAO
Insert a new record in the table.

Specified by:
insert in interface IMyluteceDirectoryUserDAO
Parameters:
directoryUser - The directoryUser object
strPassword - The user password
plugin - The Plugin using this data access service

load

public MyluteceDirectoryUser load(int nIdRecord,
                                  fr.paris.lutece.portal.service.plugin.Plugin plugin)
Description copied from interface: IMyluteceDirectoryUserDAO
Load the data of DirectoryUser from the table

Specified by:
load in interface IMyluteceDirectoryUserDAO
Parameters:
nIdRecord - The identifier of User
plugin - The Plugin using this data access service
Returns:
the instance of the DirectoryUser

delete

public void delete(MyluteceDirectoryUser directoryUser,
                   fr.paris.lutece.portal.service.plugin.Plugin plugin)
Description copied from interface: IMyluteceDirectoryUserDAO
Delete a record from the table

Specified by:
delete in interface IMyluteceDirectoryUserDAO
Parameters:
directoryUser - The directoryUser object
plugin - The Plugin using this data access service

store

public void store(MyluteceDirectoryUser directoryUser,
                  fr.paris.lutece.portal.service.plugin.Plugin plugin)
Description copied from interface: IMyluteceDirectoryUserDAO
Update the record in the table

Specified by:
store in interface IMyluteceDirectoryUserDAO
Parameters:
directoryUser - The reference of directoryUser
plugin - The Plugin using this data access service

updatePassword

public void updatePassword(MyluteceDirectoryUser directoryUser,
                           java.lang.String strNewPassword,
                           fr.paris.lutece.portal.service.plugin.Plugin plugin)
Description copied from interface: IMyluteceDirectoryUserDAO
Update the record in the table

Specified by:
updatePassword in interface IMyluteceDirectoryUserDAO
Parameters:
directoryUser - The reference of directoryUser
strNewPassword - The new password to store
plugin - The Plugin using this data access service

selectPasswordByPrimaryKey

public java.lang.String selectPasswordByPrimaryKey(int nIdRecord,
                                                   fr.paris.lutece.portal.service.plugin.Plugin plugin)
Description copied from interface: IMyluteceDirectoryUserDAO
Load the password of the specified user

Specified by:
selectPasswordByPrimaryKey in interface IMyluteceDirectoryUserDAO
Parameters:
nIdRecord - The Primary key of the directoryUser
plugin - The current plugin using this method
Returns:
String the user password

selectDirectoryUserList

public java.util.Collection<MyluteceDirectoryUser> selectDirectoryUserList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Description copied from interface: IMyluteceDirectoryUserDAO
Load the list of directoryUsers

Specified by:
selectDirectoryUserList in interface IMyluteceDirectoryUserDAO
Parameters:
plugin - The Plugin using this data access service
Returns:
The Collection of the directoryUsers

selectDirectoryUserListForLogin

public java.util.Collection<MyluteceDirectoryUser> selectDirectoryUserListForLogin(java.lang.String strLogin,
                                                                                   fr.paris.lutece.portal.service.plugin.Plugin plugin)
Description copied from interface: IMyluteceDirectoryUserDAO
Load the list of DirectoryUsers for a login

Specified by:
selectDirectoryUserListForLogin in interface IMyluteceDirectoryUserDAO
Parameters:
strLogin - The login of DirectoryUser
plugin - The Plugin using this data access service
Returns:
The Collection of the DirectoryUsers

checkPassword

public boolean checkPassword(java.lang.String strLogin,
                             java.lang.String strPassword,
                             fr.paris.lutece.portal.service.plugin.Plugin plugin)
Description copied from interface: IMyluteceDirectoryUserDAO
Check the password for a DirectoryUser

Specified by:
checkPassword in interface IMyluteceDirectoryUserDAO
Parameters:
strLogin - The user login of DirectoryUser
strPassword - The password of DirectoryUser
plugin - The Plugin using this data access service
Returns:
true if password is ok


Copyright © 2010 Mairie de Paris. All Rights Reserved.