fr.paris.lutece.plugins.mylutece.modules.wssodatabase.authentication.business
Class WssoUserRoleDAO

java.lang.Object
  extended by 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
 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
clone, equals, finalize, 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


Copyright © 2010 Mairie de Paris. All Rights Reserved.