Class WssoUserRoleDAO

  • All Implemented Interfaces:
    IWssoUserRoleDAO

    public final class WssoUserRoleDAO
    extends java.lang.Object
    implements IWssoUserRoleDAO
    This class provides Data Access methods for WssoRole objects
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void createRoleForUser​(int nIdUser, java.lang.String strRoleId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Assign a role to user
      void deleteRolesForUser​(int nIdUser, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Delete roles for a user
      java.util.Collection<java.lang.String> selectRoleListForUser​(int nIdUser, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the list of Roles for a user
      java.util.Collection<java.lang.Integer> selectUserListForRole​(java.lang.String strRoleKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Returns a collection of User id
      • Methods inherited from class java.lang.Object

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

      • selectRoleListForUser

        public java.util.Collection<java.lang.String> selectRoleListForUser​(int nIdUser,
                                                                            fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Load the list of Roles for a user
        Specified by:
        selectRoleListForUser in interface IWssoUserRoleDAO
        Parameters:
        nIdUser - The id of the user
        plugin - The Plugin using this data access service
        Returns:
        The Collection of the roles key
      • selectUserListForRole

        public java.util.Collection<java.lang.Integer> selectUserListForRole​(java.lang.String strRoleKey,
                                                                             fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Returns a collection of User id
        Specified by:
        selectUserListForRole in interface IWssoUserRoleDAO
        Parameters:
        strRoleKey - The key of the role
        plugin - The current plugin using this method
        Returns:
        A collection of User id
      • deleteRolesForUser

        public void deleteRolesForUser​(int nIdUser,
                                       fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Delete roles for a user
        Specified by:
        deleteRolesForUser in interface IWssoUserRoleDAO
        Parameters:
        nIdUser - The id of the user
        plugin - The Plugin using this data access service
      • createRoleForUser

        public void createRoleForUser​(int nIdUser,
                                      java.lang.String strRoleId,
                                      fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Assign a role to user
        Specified by:
        createRoleForUser in interface IWssoUserRoleDAO
        Parameters:
        nIdUser - The id of the user
        strRoleId - The role key
        plugin - The Plugin using this data access service