fr.paris.lutece.plugins.mylutece.modules.openiddatabase.authentication.business
Interface IOpenIdDatabaseUserDAO

All Known Implementing Classes:
OpenIdDatabaseUserDAO

public interface IOpenIdDatabaseUserDAO

Author:
Etienne

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 DatabaseUser
 boolean checkUserLogin(java.lang.String strLogin, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Checks whether the login exists
 void delete(OpenIdDatabaseUser databaseUser, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Delete a record from the table
 void insert(OpenIdDatabaseUser databaseUser, java.lang.String strPassword, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Insert a new record in the table.
 OpenIdDatabaseUser load(int nDatabaseUserId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load the data of DatabaseUser from the table
 int newPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Generates a new primary key
 OpenIdDatabaseUser selectDatabaseUserByEmail(java.lang.String strEmail, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load the list of a user by a email
 java.util.Collection<OpenIdDatabaseUser> selectDatabaseUserList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load the list of databaseUsers
 java.util.Collection<OpenIdDatabaseUser> selectDatabaseUserListForLogin(java.lang.String strLogin, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load the list of DatabaseUsers for a login
 java.lang.String selectPasswordByPrimaryKey(int nDatabaseUserId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load the password of the specified user
 void store(OpenIdDatabaseUser databaseUser, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Update the record in the table
 void storeByLogin(OpenIdDatabaseUser databaseUser, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Update the record in the table
 void updatePassword(OpenIdDatabaseUser databaseUser, java.lang.String strNewPassword, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Update the record in the table
 

Method Detail

newPrimaryKey

int newPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Generates a new primary key

Parameters:
plugin - The Plugin using this data access service
Returns:
The new primary key

insert

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

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

load

OpenIdDatabaseUser load(int nDatabaseUserId,
                        fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of DatabaseUser from the table

Parameters:
nDatabaseUserId - The identifier of databaseUser
plugin - The Plugin using this data access service
Returns:
the instance of the DatabaseUser

delete

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

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

store

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

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

storeByLogin

void storeByLogin(OpenIdDatabaseUser databaseUser,
                  fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the record in the table

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

updatePassword

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

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

selectPasswordByPrimaryKey

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

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

selectDatabaseUserList

java.util.Collection<OpenIdDatabaseUser> selectDatabaseUserList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the list of databaseUsers

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

selectDatabaseUserListForLogin

java.util.Collection<OpenIdDatabaseUser> selectDatabaseUserListForLogin(java.lang.String strLogin,
                                                                        fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the list of DatabaseUsers for a login

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

selectDatabaseUserByEmail

OpenIdDatabaseUser selectDatabaseUserByEmail(java.lang.String strEmail,
                                             fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the list of a user by a email

Parameters:
strEmail - The email of DatabaseUser
plugin - The Plugin using this data access service
Returns:
The Collection of the DatabaseUsers

checkPassword

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

Parameters:
strLogin - The user login of DatabaseUser
strPassword - The password of DatabaseUser
plugin - The Plugin using this data access service
Returns:
true if password is ok

checkUserLogin

boolean checkUserLogin(java.lang.String strLogin,
                       fr.paris.lutece.portal.service.plugin.Plugin plugin)
Checks whether the login exists

Parameters:
strLogin - The user login of DatabaseUser
plugin - The Plugin using this data access service
Returns:
true if password is ok


Copyright © 2010 Mairie de Paris. All Rights Reserved.