|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.paris.lutece.plugins.mylutece.modules.database.authentication.business.DatabaseHome
public final class DatabaseHome
This class provides instances management methods (create, find, ...) for databaseUser objects
| Method Summary | |
|---|---|
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
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 object
public static boolean findResetPasswordFromLogin(String strLogin,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
strLogin - the loginplugin - The Plugin using this data access service
public static Timestamp findPasswordMaxValideDateFromLogin(String strLogin,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
strLogin - The login of the userplugin - The plugin
public static Collection<BaseUser> findDatabaseUsersList(fr.paris.lutece.portal.service.plugin.Plugin plugin,
fr.paris.lutece.portal.service.security.LuteceAuthentication authenticationService)
BaseUser
plugin - The Plugin using this data access serviceauthenticationService - the authentication service
BaseUser
public static List<String> findUserRolesFromLogin(String strLogin,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
strLogin - the loginplugin - The Plugin using this data access service
public 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 service
public 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 service
public static List<String> findUserGroupsFromLogin(String strLogin,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
strLogin - the loginplugin - The Plugin using this data access service
public 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 service
public 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 service
public 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 method
public static List<DatabaseUser> findGroupUsersFromGroupKey(String strGroupKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
strGroupKey - The group keyplugin - Plugin
public 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 plugin
public static int findUserIdFromLogin(String strLogin,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
strLogin - Login of the userplugin - The plugin
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||