public class DatabaseDAO extends Object implements IDatabaseDAO
Constructor and Description |
---|
DatabaseDAO() |
Modifier and Type | Method and Description |
---|---|
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
|
int |
findUserIdFromLogin(String strLogin,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Get the id of a user from his login
|
List<DatabaseUser> |
selectGroupUsersFromGroupKey(String strGroupKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Find assigned users to the given group
|
Collection<String> |
selectLoginListForRoleKey(String strRoleKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the list of DatabaseUsers for a Lutece role
|
BaseUser |
selectLuteceUserByLogin(String strLogin,
fr.paris.lutece.portal.service.plugin.Plugin plugin,
fr.paris.lutece.portal.service.security.LuteceAuthentication authenticationService)
Find DatabaseUser 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 |
Timestamp |
selectPasswordMaxValideDateFromLogin(String strLogin,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Gets the password max valid date of a user from his login.
|
boolean |
selectResetPasswordFromLogin(String strLogin,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Check if a user has reset his password from his login
|
List<String> |
selectUserGroupsFromLogin(String strLogin,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Find user's groups by login
|
List<String> |
selectUserRolesFromLogin(String strLogin,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Find user's roles by login
|
void |
updateResetPasswordFromLogin(String strUserName,
boolean bNewValue,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the reset password attribut of a user from his login
|
public BaseUser selectLuteceUserByLogin(String strLogin, fr.paris.lutece.portal.service.plugin.Plugin plugin, fr.paris.lutece.portal.service.security.LuteceAuthentication authenticationService)
selectLuteceUserByLogin
in interface IDatabaseDAO
strLogin
- the loginplugin
- The Plugin using this data access serviceauthenticationService
- the LuteceAuthentication objectpublic boolean selectResetPasswordFromLogin(String strLogin, fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectResetPasswordFromLogin
in interface IDatabaseDAO
strLogin
- the loginplugin
- The Plugin using this data access servicepublic Timestamp selectPasswordMaxValideDateFromLogin(String strLogin, fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectPasswordMaxValideDateFromLogin
in interface IDatabaseDAO
strLogin
- the login of the userplugin
- The pluginpublic Collection<BaseUser> selectLuteceUserList(fr.paris.lutece.portal.service.plugin.Plugin plugin, fr.paris.lutece.portal.service.security.LuteceAuthentication authenticationService)
BaseUser
selectLuteceUserList
in interface IDatabaseDAO
plugin
- The Plugin using this data access serviceauthenticationService
- the authentication serviceBaseUser
public List<String> selectUserRolesFromLogin(String strLogin, fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectUserRolesFromLogin
in interface IDatabaseDAO
strLogin
- the loginplugin
- The Plugin using this data access servicepublic void deleteRolesForUser(int nIdUser, fr.paris.lutece.portal.service.plugin.Plugin plugin)
deleteRolesForUser
in interface IDatabaseDAO
nIdUser
- The id of the userplugin
- The Plugin using this data access servicepublic void createRoleForUser(int nIdUser, String strRoleKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
createRoleForUser
in interface IDatabaseDAO
nIdUser
- The id of the userstrRoleKey
- The key of the roleplugin
- The Plugin using this data access servicepublic List<String> selectUserGroupsFromLogin(String strLogin, fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectUserGroupsFromLogin
in interface IDatabaseDAO
strLogin
- The loginplugin
- The Plugin using this data access servicepublic Collection<String> selectLoginListForRoleKey(String strRoleKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectLoginListForRoleKey
in interface IDatabaseDAO
strRoleKey
- The role key of DatabaseUserplugin
- The Plugin using this data access servicepublic void deleteGroupsForUser(int nIdUser, fr.paris.lutece.portal.service.plugin.Plugin plugin)
deleteGroupsForUser
in interface IDatabaseDAO
nIdUser
- The id of the userplugin
- The Plugin using this data access servicepublic void createGroupForUser(int nIdUser, String strGroupKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
createGroupForUser
in interface IDatabaseDAO
nIdUser
- The id of the userstrGroupKey
- The key of the groupplugin
- The Plugin using this data access servicepublic List<DatabaseUser> selectGroupUsersFromGroupKey(String strGroupKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectGroupUsersFromGroupKey
in interface IDatabaseDAO
strGroupKey
- The group keyplugin
- Pluginpublic void updateResetPasswordFromLogin(String strUserName, boolean bNewValue, fr.paris.lutece.portal.service.plugin.Plugin plugin)
updateResetPasswordFromLogin
in interface IDatabaseDAO
strUserName
- Login of the user to updatebNewValue
- New valueplugin
- The pluginpublic int findUserIdFromLogin(String strLogin, fr.paris.lutece.portal.service.plugin.Plugin plugin)
findUserIdFromLogin
in interface IDatabaseDAO
strLogin
- Login of the userplugin
- The pluginCopyright © 2018 City of Paris. All rights reserved.