fr.paris.lutece.plugins.mylutece.modules.directory.authentication.business
Interface IMyluteceDirectoryUserDAO

All Known Implementing Classes:
MyluteceDirectoryUserDAO

public interface IMyluteceDirectoryUserDAO

Author:
Etienne

Method Summary
 boolean checkActivated(java.lang.String strLogin, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Check if user is activated
 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
 

Method Detail

insert

void insert(MyluteceDirectoryUser directoryUser,
            java.lang.String strPassword,
            fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table.

Parameters:
directoryUser - The directoryUser object
strPassword - The user password
plugin - The Plugin using this data access service

load

MyluteceDirectoryUser load(int nIdRecord,
                           fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of DirectoryUser from the table

Parameters:
nIdRecord - The identifier of User
plugin - The Plugin using this data access service
Returns:
the instance of the DirectoryUser

delete

void delete(MyluteceDirectoryUser directoryUser,
            fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete a record from the table

Parameters:
directoryUser - The directoryUser object
plugin - The Plugin using this data access service

store

void store(MyluteceDirectoryUser directoryUser,
           fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the record in the table

Parameters:
directoryUser - The reference of directoryUser
plugin - The Plugin using this data access service

updatePassword

void updatePassword(MyluteceDirectoryUser directoryUser,
                    java.lang.String strNewPassword,
                    fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the record in the table

Parameters:
directoryUser - The reference of directoryUser
strNewPassword - The new password to store
plugin - The Plugin using this data access service

selectPasswordByPrimaryKey

java.lang.String selectPasswordByPrimaryKey(int nIdRecord,
                                            fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the password of the specified user

Parameters:
nIdRecord - The Primary key of the directoryUser
plugin - The current plugin using this method
Returns:
String the user password

selectDirectoryUserList

java.util.Collection<MyluteceDirectoryUser> selectDirectoryUserList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the list of directoryUsers

Parameters:
plugin - The Plugin using this data access service
Returns:
The Collection of the directoryUsers

selectDirectoryUserListForLogin

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

Parameters:
strLogin - The login of DirectoryUser
plugin - The Plugin using this data access service
Returns:
The Collection of the DirectoryUsers

checkPassword

boolean checkPassword(java.lang.String strLogin,
                      java.lang.String strPassword,
                      fr.paris.lutece.portal.service.plugin.Plugin plugin)
Check the password for a DirectoryUser

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

checkActivated

boolean checkActivated(java.lang.String strLogin,
                       fr.paris.lutece.portal.service.plugin.Plugin plugin)
Check if user is activated

Parameters:
strLogin - The user login of DirectoryUser
plugin - The Plugin using this data access service
Returns:
true if user is activated


Copyright © 2010 Mairie de Paris. All Rights Reserved.