fr.paris.lutece.plugins.mylutece.modules.wssodatabase.authentication.business
Class IdxWSSODatabaseHome

java.lang.Object
  extended by fr.paris.lutece.plugins.mylutece.modules.wssodatabase.authentication.business.IdxWSSODatabaseHome

public final class IdxWSSODatabaseHome
extends Object

Home for IdxWSSODatabase


Method Summary
static IdxWSSODatabaseUser findUserByGuid(String strGuid, fr.paris.lutece.portal.service.plugin.Plugin plugin, fr.paris.lutece.portal.service.security.LuteceAuthentication authenticationService)
          Find users by guid
static List<String> findUserRolesFromGuid(String strGuid, fr.paris.lutece.portal.service.plugin.Plugin plugin, fr.paris.lutece.portal.service.security.LuteceAuthentication authenticationService)
          Find user's roles by guid
static Collection<IdxWSSODatabaseUser> findUsersList(fr.paris.lutece.portal.service.plugin.Plugin plugin, fr.paris.lutece.portal.service.security.LuteceAuthentication authenticationService)
          Find users by guid
static void updateDateLastLogin(String strGuid, Date dateLastLogin, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Update the last login date of a user
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

findUserByGuid

public static IdxWSSODatabaseUser findUserByGuid(String strGuid,
                                                 fr.paris.lutece.portal.service.plugin.Plugin plugin,
                                                 fr.paris.lutece.portal.service.security.LuteceAuthentication authenticationService)
Find users by guid

Parameters:
strGuid - the WSSO guid
plugin - The Plugin using this data access service
authenticationService - the LuteceAuthentication object
Returns:
IdxWSSODatabaseUser the user corresponding to the guid

findUserRolesFromGuid

public static List<String> findUserRolesFromGuid(String strGuid,
                                                 fr.paris.lutece.portal.service.plugin.Plugin plugin,
                                                 fr.paris.lutece.portal.service.security.LuteceAuthentication authenticationService)
Find user's roles by guid

Parameters:
strGuid - the WSSO guid
plugin - The Plugin using this data access service
authenticationService - the LuteceAuthentication object
Returns:
ArrayList the roles list corresponding to the guid

updateDateLastLogin

public static void updateDateLastLogin(String strGuid,
                                       Date dateLastLogin,
                                       fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the last login date of a user

Parameters:
strGuid - The GUID of the user to update
dateLastLogin - New date of last connection
plugin - The plugin

findUsersList

public static Collection<IdxWSSODatabaseUser> findUsersList(fr.paris.lutece.portal.service.plugin.Plugin plugin,
                                                            fr.paris.lutece.portal.service.security.LuteceAuthentication authenticationService)
Find users by guid

Parameters:
plugin - The Plugin using this data access service
authenticationService - the LuteceAuthentication object
Returns:
IdxWSSODatabaseUser the user corresponding to the guid


Copyright © 2013 Mairie de Paris. All Rights Reserved.