Interface IWssoUserRoleDAO

  • All Known Implementing Classes:
    WssoUserRoleDAO

    public interface IWssoUserRoleDAO
    • Method Summary

      All Methods Instance Methods Abstract 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
    • Method Detail

      • selectRoleListForUser

        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
        Parameters:
        nIdUser - The id of the user
        plugin - The Plugin using this data access service
        Returns:
        The Collection of the Roles
      • selectUserListForRole

        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
        Parameters:
        strRoleKey - The key of the role
        plugin - The current plugin using this method
        Returns:
        A collection of User id
      • deleteRolesForUser

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

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