Interface IWssoUserRoleDAO
-
- All Known Implementing Classes:
WssoUserRoleDAO
public interface IWssoUserRoleDAO
-
-
Method Summary
All Methods Instance Methods Abstract 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
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 userplugin- 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 roleplugin- 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 userplugin- 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 userstrRoleId- The role keyplugin- The Plugin using this data access service
-
-