fr.paris.lutece.plugins.mylutece.modules.openiddatabase.authentication.business
Class OpenIdDatabaseUserHome

java.lang.Object
  extended by fr.paris.lutece.plugins.mylutece.modules.openiddatabase.authentication.business.OpenIdDatabaseUserHome

public final class OpenIdDatabaseUserHome
extends java.lang.Object

This class provides instances management methods (create, find, ...) for DatabaseUser objects


Method Summary
static boolean checkPassword(java.lang.String strLogin, java.lang.String strPassword, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Check the password for a DatabaseUser
static boolean checkUserLogin(java.lang.String strLogin, fr.paris.lutece.portal.service.plugin.Plugin plugin)
           
static OpenIdDatabaseUser create(OpenIdDatabaseUser databaseUser, java.lang.String strPassword, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Creation of an instance of databaseUser
static OpenIdDatabaseUser findByPrimaryKey(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Returns an instance of a DatabaseUser whose identifier is specified in parameter
static java.util.Collection findDatabaseUsersList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Returns a collection of DatabaseUser objects
static java.util.Collection findDatabaseUsersListForLogin(java.lang.String strLogin, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Returns a collection of DatabaseUser objects for a login
static java.lang.String findPasswordByPrimaryKey(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Returns the password of the specified user
static void remove(OpenIdDatabaseUser databaseUser, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Remove the databaseUser whose identifier is specified in parameter
static OpenIdDatabaseUser selectDatabaseUserByEmail(java.lang.String strEmail, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Returns a DatabaseUser by email
static OpenIdDatabaseUser update(OpenIdDatabaseUser databaseUser, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Update of the databaseUser which is specified in parameter
static OpenIdDatabaseUser updateByLogin(OpenIdDatabaseUser databaseUser, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Update of the databaseUser who updates profile
static OpenIdDatabaseUser updatePassword(OpenIdDatabaseUser databaseUser, java.lang.String strNewPassword, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Update of the databaseUser which is specified in parameter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

create

public static OpenIdDatabaseUser create(OpenIdDatabaseUser databaseUser,
                                        java.lang.String strPassword,
                                        fr.paris.lutece.portal.service.plugin.Plugin plugin)
Creation of an instance of databaseUser

Parameters:
databaseUser - The instance of the DatabaseUser which contains the informations to store
strPassword - The user's password
plugin - The current plugin using this method
Returns:
The instance of DatabaseUser which has been created with its primary key.

update

public static OpenIdDatabaseUser update(OpenIdDatabaseUser databaseUser,
                                        fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update of the databaseUser which is specified in parameter

Parameters:
databaseUser - The instance of the DatabaseUser which contains the data to store
plugin - The current plugin using this method
Returns:
The instance of the DatabaseUser which has been updated

updateByLogin

public static OpenIdDatabaseUser updateByLogin(OpenIdDatabaseUser databaseUser,
                                               fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update of the databaseUser who updates profile

Parameters:
databaseUser - The instance of the DatabaseUser which contains the data to store
plugin - The current plugin using this method
Returns:
The instance of the DatabaseUser which has been updated

updatePassword

public static OpenIdDatabaseUser updatePassword(OpenIdDatabaseUser databaseUser,
                                                java.lang.String strNewPassword,
                                                fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update of the databaseUser which is specified in parameter

Parameters:
databaseUser - The instance of the DatabaseUser which contains the data to store
strNewPassword - The new password to store
plugin - The current plugin using this method
Returns:
The instance of the DatabaseUser which has been updated

remove

public static void remove(OpenIdDatabaseUser databaseUser,
                          fr.paris.lutece.portal.service.plugin.Plugin plugin)
Remove the databaseUser whose identifier is specified in parameter

Parameters:
databaseUser - The DatabaseUser object to remove
plugin - The current plugin using this method

findByPrimaryKey

public static OpenIdDatabaseUser findByPrimaryKey(int nKey,
                                                  fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns an instance of a DatabaseUser whose identifier is specified in parameter

Parameters:
nKey - The Primary key of the databaseUser
plugin - The current plugin using this method
Returns:
An instance of DatabaseUser

findDatabaseUsersList

public static java.util.Collection findDatabaseUsersList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns a collection of DatabaseUser objects

Parameters:
plugin - The current plugin using this method
Returns:
A collection of DatabaseUser

findDatabaseUsersListForLogin

public static java.util.Collection findDatabaseUsersListForLogin(java.lang.String strLogin,
                                                                 fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns a collection of DatabaseUser objects for a login

Parameters:
strLogin - The login of the databseUser
plugin - The current plugin using this method
Returns:
A collection of DatabaseUser

selectDatabaseUserByEmail

public static OpenIdDatabaseUser selectDatabaseUserByEmail(java.lang.String strEmail,
                                                           fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns a DatabaseUser by email

Parameters:
strEmail - The email of the databaseUser
plugin - The current plugin using this method
Returns:
A collection of DatabaseUser

findPasswordByPrimaryKey

public static java.lang.String findPasswordByPrimaryKey(int nKey,
                                                        fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns the password of the specified user

Parameters:
nKey - The Primary key of the databaseUser
plugin - The current plugin using this method
Returns:
An instance of DatabaseUser

checkPassword

public static 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

public static boolean checkUserLogin(java.lang.String strLogin,
                                     fr.paris.lutece.portal.service.plugin.Plugin plugin)


Copyright © 2010 Mairie de Paris. All Rights Reserved.