fr.paris.lutece.plugins.mylutece.modules.openiddatabase.authentication.business
Interface IManageUsers

All Known Implementing Classes:
OpenIdDatabaseDAO

public interface IManageUsers


Method Summary
 void createGroupForUser(int nIdUser, java.lang.String strGroupKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Assign a group to user
 void createRoleForUser(int nIdUser, java.lang.String strRoleKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Assign a role to user
 void deleteGroupsForUser(int nIdUser, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Delete groups for a user
 void deleteRolesForUser(int nIdUser, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Delete roles for a user
 BaseUser selectLuteceUserByLogin(java.lang.String strLogin, fr.paris.lutece.portal.service.plugin.Plugin plugin, fr.paris.lutece.portal.service.security.LuteceAuthentication authenticationService)
          Find users by login
 java.util.Collection<BaseUser> selectLuteceUserList(fr.paris.lutece.portal.service.plugin.Plugin plugin, fr.paris.lutece.portal.service.security.LuteceAuthentication authenticationService)
          Load the list of BaseUser
 java.util.ArrayList<java.lang.String> selectUserGroupsFromLogin(java.lang.String strLogin, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Find user's groups by login
 java.util.ArrayList<java.lang.String> selectUserRolesFromLogin(java.lang.String strLogin, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Select the list of DatabaseUsers for a login
 

Method Detail

selectLuteceUserByLogin

BaseUser selectLuteceUserByLogin(java.lang.String strLogin,
                                 fr.paris.lutece.portal.service.plugin.Plugin plugin,
                                 fr.paris.lutece.portal.service.security.LuteceAuthentication authenticationService)
Find users by login

Parameters:
strLogin - the login
plugin - The Plugin using this data access service
authenticationService - the LuteceAuthentication object
Returns:
BaseUser the user corresponding to the login

selectLuteceUserList

java.util.Collection<BaseUser> selectLuteceUserList(fr.paris.lutece.portal.service.plugin.Plugin plugin,
                                                    fr.paris.lutece.portal.service.security.LuteceAuthentication authenticationService)
Load the list of BaseUser

Parameters:
plugin - The Plugin using this data access service
Returns:
The Collection of the BaseUser

selectUserRolesFromLogin

java.util.ArrayList<java.lang.String> selectUserRolesFromLogin(java.lang.String strLogin,
                                                               fr.paris.lutece.portal.service.plugin.Plugin plugin)
Select the list of DatabaseUsers for a login

Parameters:
strLogin - The login of DatabaseUser
plugin - The Plugin using this data access service
Returns:
The Collection of the DatabaseUsers

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 strRoleKey,
                       fr.paris.lutece.portal.service.plugin.Plugin plugin)
Assign a role to user

Parameters:
nIdUser - The id of the user
strRoleKey - The key of the role
plugin - The Plugin using this data access service

selectUserGroupsFromLogin

java.util.ArrayList<java.lang.String> selectUserGroupsFromLogin(java.lang.String strLogin,
                                                                fr.paris.lutece.portal.service.plugin.Plugin plugin)
Find user's groups by login

Parameters:
strLogin - the login
plugin - The Plugin using this data access service
Returns:
ArrayList the group key list corresponding to the login

deleteGroupsForUser

void deleteGroupsForUser(int nIdUser,
                         fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete groups for a user

Parameters:
nIdUser - The id of the user
plugin - The Plugin using this data access service

createGroupForUser

void createGroupForUser(int nIdUser,
                        java.lang.String strGroupKey,
                        fr.paris.lutece.portal.service.plugin.Plugin plugin)
Assign a group to user

Parameters:
nIdUser - The id of the user
strGroupKey - The key of the group
plugin - The Plugin using this data access service


Copyright © 2010 Mairie de Paris. All Rights Reserved.