Class WssoUserRoleDAO
- java.lang.Object
-
- fr.paris.lutece.plugins.mylutece.modules.wssodatabase.authentication.business.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 voidcreateRoleForUser(int nIdUser, java.lang.String strRoleId, fr.paris.lutece.portal.service.plugin.Plugin plugin)Assign a role to uservoiddeleteRolesForUser(int nIdUser, fr.paris.lutece.portal.service.plugin.Plugin plugin)Delete roles for a userjava.util.Collection<java.lang.String>selectRoleListForUser(int nIdUser, fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the list of Roles for a userjava.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
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:
selectRoleListForUserin interfaceIWssoUserRoleDAO- Parameters:
nIdUser- The id of the userplugin- 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:
selectUserListForRolein interfaceIWssoUserRoleDAO- Parameters:
strRoleKey- The key of the roleplugin- 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:
deleteRolesForUserin interfaceIWssoUserRoleDAO- Parameters:
nIdUser- The id of the userplugin- 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:
createRoleForUserin interfaceIWssoUserRoleDAO- Parameters:
nIdUser- The id of the userstrRoleId- The role keyplugin- The Plugin using this data access service
-
-