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, String strGroupKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Assign a group to user
 void createRoleForUser(int nIdUser, 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(String strLogin, fr.paris.lutece.portal.service.plugin.Plugin plugin, fr.paris.lutece.portal.service.security.LuteceAuthentication authenticationService)
          Find users by login
 Collection<BaseUser> selectLuteceUserList(fr.paris.lutece.portal.service.plugin.Plugin plugin, fr.paris.lutece.portal.service.security.LuteceAuthentication authenticationService)
          Load the list of BaseUser
 ArrayList<String> selectUserGroupsFromLogin(String strLogin, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Find user's groups by login
 ArrayList<String> selectUserRolesFromLogin(String strLogin, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Select the list of DatabaseUsers for a login
 

Method Detail

selectLuteceUserByLogin

BaseUser selectLuteceUserByLogin(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

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

ArrayList<String> selectUserRolesFromLogin(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,
                       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

ArrayList<String> selectUserGroupsFromLogin(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,
                        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 © 2013 Mairie de Paris. All Rights Reserved.