fr.paris.lutece.plugins.mylutece.modules.ldapdatabase.authentication.business
Interface ILdapDatabaseDAO

All Known Implementing Classes:
LdapDatabaseDAO

public interface ILdapDatabaseDAO

Author:
Etienne

Method Summary
 void createRoleForUser(int nIdUser, java.lang.String strRoleKey, 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
 LDAPDatabaseUser selectLuteceUserByGuid(java.lang.String strLdapGuid, fr.paris.lutece.portal.service.plugin.Plugin plugin, fr.paris.lutece.portal.service.security.LuteceAuthentication authenticationService)
          Find users by guid
 java.util.ArrayList<java.lang.String> selectUserRolesFromGuid(java.lang.String strGuid, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Find user's roles by guid
 

Method Detail

selectLuteceUserByGuid

LDAPDatabaseUser selectLuteceUserByGuid(java.lang.String strLdapGuid,
                                        fr.paris.lutece.portal.service.plugin.Plugin plugin,
                                        fr.paris.lutece.portal.service.security.LuteceAuthentication authenticationService)
Find users by guid

Parameters:
strLdapGuid - the Ldap guid
plugin - The Plugin using this data access service
authenticationService - the LuteceAuthentication object
Returns:
LdapDatabaseUser the user corresponding to the guid

selectUserRolesFromGuid

java.util.ArrayList<java.lang.String> selectUserRolesFromGuid(java.lang.String strGuid,
                                                              fr.paris.lutece.portal.service.plugin.Plugin plugin)
Find user's roles by guid

Parameters:
strGuid - the Ldap guid
plugin - The Plugin using this data access service
Returns:
ArrayList the roles key list corresponding to the guid

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


Copyright © 2007 Mairie de Paris. All Rights Reserved.