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

java.lang.Object
  extended by fr.paris.lutece.plugins.mylutece.modules.wssodatabase.authentication.business.IdxWSSODatabaseDAO
All Implemented Interfaces:
IIdxWSSODatabaseDAO

public class IdxWSSODatabaseDAO
extends Object
implements IIdxWSSODatabaseDAO

This class provides Data Access methods for authentication (role retrieval).


Field Summary
static String SQL_QUERY_FIND_ALL_USERS
           
static String SQL_QUERY_FIND_ROLES_FROM_GUID
           
static String SQL_QUERY_FIND_USER_BY_GUID
           
 
Constructor Summary
IdxWSSODatabaseDAO()
           
 
Method Summary
 IdxWSSODatabaseUser findUserByGuid(String strGuid, fr.paris.lutece.portal.service.plugin.Plugin plugin, fr.paris.lutece.portal.service.security.LuteceAuthentication authenticationService)
          Find users by guid
 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
 Collection<IdxWSSODatabaseUser> findUsersList(fr.paris.lutece.portal.service.plugin.Plugin plugin, fr.paris.lutece.portal.service.security.LuteceAuthentication authenticationService)
          Find users list
 void updateDateLastLogin(String strGuid, Date dateLastLogin, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Update the date of last login of a user
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SQL_QUERY_FIND_USER_BY_GUID

public static final String SQL_QUERY_FIND_USER_BY_GUID
See Also:
Constant Field Values

SQL_QUERY_FIND_ALL_USERS

public static final String SQL_QUERY_FIND_ALL_USERS
See Also:
Constant Field Values

SQL_QUERY_FIND_ROLES_FROM_GUID

public static final String SQL_QUERY_FIND_ROLES_FROM_GUID
See Also:
Constant Field Values
Constructor Detail

IdxWSSODatabaseDAO

public IdxWSSODatabaseDAO()
Method Detail

findUserByGuid

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

Specified by:
findUserByGuid in interface IIdxWSSODatabaseDAO
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 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

Specified by:
findUserRolesFromGuid in interface IIdxWSSODatabaseDAO
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 void updateDateLastLogin(String strGuid,
                                Date dateLastLogin,
                                fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the date of last login of a user

Specified by:
updateDateLastLogin in interface IIdxWSSODatabaseDAO
Parameters:
strGuid - The GUID of the user to update
dateLastLogin - The new last connection date
plugin - The plugin

findUsersList

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

Specified by:
findUsersList in interface IIdxWSSODatabaseDAO
Parameters:
plugin - The Plugin using this data access service
authenticationService - the LuteceAuthentication object
Returns:
A Collection of users


Copyright © 2013 Mairie de Paris. All Rights Reserved.