public final class DatabaseHome extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
addGroupForUser(int nIdUser,
String strGroupKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Assign a group to user
|
static void |
addRoleForUser(int nIdUser,
String strRoleKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Assign a role to user
|
static Collection<BaseUser> |
findDatabaseUsersList(fr.paris.lutece.portal.service.plugin.Plugin plugin,
fr.paris.lutece.portal.service.security.LuteceAuthentication authenticationService)
Load the list of
BaseUser |
static Collection<String> |
findDatabaseUsersListForRoleKey(String strRoleKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns a collection of DatabaseUser objects for a Lutece role
|
static List<DatabaseUser> |
findGroupUsersFromGroupKey(String strGroupKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Find assigned users to the given group
|
static BaseUser |
findLuteceUserByLogin(String strLogin,
fr.paris.lutece.portal.service.plugin.Plugin plugin,
fr.paris.lutece.portal.service.security.LuteceAuthentication authenticationService)
Find users by login
|
static Timestamp |
findPasswordMaxValideDateFromLogin(String strLogin,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Gets the expiration date of the user's password
|
static boolean |
findResetPasswordFromLogin(String strLogin,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Gets the reset password attribute of the user from his login
|
static List<String> |
findUserGroupsFromLogin(String strLogin,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Find user's groups by login
|
static int |
findUserIdFromLogin(String strLogin,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Get the id of a user from his login
|
static List<String> |
findUserRolesFromLogin(String strLogin,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Find user's roles by login
|
static void |
removeGroupsForUser(int nIdUser,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete groups for a user
|
static void |
removeRolesForUser(int nIdUser,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete roles for a user
|
static 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 static BaseUser findLuteceUserByLogin(String strLogin, fr.paris.lutece.portal.service.plugin.Plugin plugin, fr.paris.lutece.portal.service.security.LuteceAuthentication authenticationService)
strLogin - the loginplugin - The Plugin using this data access serviceauthenticationService - the LuteceAuthentication objectpublic static boolean findResetPasswordFromLogin(String strLogin, fr.paris.lutece.portal.service.plugin.Plugin plugin)
strLogin - the loginplugin - The Plugin using this data access servicepublic static Timestamp findPasswordMaxValideDateFromLogin(String strLogin, fr.paris.lutece.portal.service.plugin.Plugin plugin)
strLogin - The login of the userplugin - The pluginpublic static Collection<BaseUser> findDatabaseUsersList(fr.paris.lutece.portal.service.plugin.Plugin plugin, fr.paris.lutece.portal.service.security.LuteceAuthentication authenticationService)
BaseUserplugin - The Plugin using this data access serviceauthenticationService - the authentication serviceBaseUserpublic static List<String> findUserRolesFromLogin(String strLogin, fr.paris.lutece.portal.service.plugin.Plugin plugin)
strLogin - the loginplugin - The Plugin using this data access servicepublic static void removeRolesForUser(int nIdUser,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdUser - The id of the userplugin - The Plugin using this data access servicepublic static void addRoleForUser(int nIdUser,
String strRoleKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdUser - The id of the userstrRoleKey - The key of the roleplugin - The Plugin using this data access servicepublic static List<String> findUserGroupsFromLogin(String strLogin, fr.paris.lutece.portal.service.plugin.Plugin plugin)
strLogin - the loginplugin - The Plugin using this data access servicepublic static void removeGroupsForUser(int nIdUser,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdUser - The id of the userplugin - The Plugin using this data access servicepublic static void addGroupForUser(int nIdUser,
String strGroupKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdUser - The id of the userstrGroupKey - The key of the groupplugin - The Plugin using this data access servicepublic static Collection<String> findDatabaseUsersListForRoleKey(String strRoleKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
strRoleKey - The role of the databseUserplugin - The current plugin using this methodpublic static List<DatabaseUser> findGroupUsersFromGroupKey(String strGroupKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
strGroupKey - The group keyplugin - Pluginpublic static void updateResetPasswordFromLogin(String strUserName, boolean bNewValue, fr.paris.lutece.portal.service.plugin.Plugin plugin)
strUserName - Login of the user to updatebNewValue - New valueplugin - the pluginpublic static int findUserIdFromLogin(String strLogin, fr.paris.lutece.portal.service.plugin.Plugin plugin)
strLogin - Login of the userplugin - The pluginCopyright © 2018 City of Paris. All rights reserved.