Class WssoUserRoleHome


  • public final class WssoUserRoleHome
    extends java.lang.Object
    This class provides instances management methods (create, find, ...) for WssoUserRole objects
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void createRoleForUser​(int nIdUser, java.lang.String strRoleId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Assign a role to user
      static void deleteRolesForUser​(int nIdUser, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Delete roles for a user
      static java.util.Collection<java.lang.String> findRolesListForUser​(int nIdUser, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Returns a collection of Roles objects
      static java.util.Collection<java.lang.Integer> findUserListForRole​(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

      • findRolesListForUser

        public static java.util.Collection<java.lang.String> findRolesListForUser​(int nIdUser,
                                                                                  fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Returns a collection of Roles objects
        Parameters:
        nIdUser - The id of the user
        plugin - The current plugin using this method
        Returns:
        A collection of Roles
      • findUserListForRole

        public static java.util.Collection<java.lang.Integer> findUserListForRole​(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

        public static 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

        public static 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 id of the role
        plugin - The Plugin using this data access service