Class IdxWSSODatabaseHome


  • public final class IdxWSSODatabaseHome
    extends java.lang.Object
    Home for IdxWSSODatabase
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static IdxWSSODatabaseUser findUserByGuid​(java.lang.String strGuid, fr.paris.lutece.portal.service.plugin.Plugin plugin, fr.paris.lutece.portal.service.security.LuteceAuthentication authenticationService)
      Find users by guid
      static java.util.List<java.lang.String> findUserRolesFromGuid​(java.lang.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 java.util.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​(java.lang.String strGuid, java.util.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

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • findUserByGuid

        public static IdxWSSODatabaseUser findUserByGuid​(java.lang.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 java.util.List<java.lang.String> findUserRolesFromGuid​(java.lang.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​(java.lang.String strGuid,
                                               java.util.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 java.util.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