|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.paris.lutece.plugins.mylutece.modules.openiddatabase.authentication.business.OpenIdDatabaseHome
public final class OpenIdDatabaseHome
This class provides instances management methods (create, find, ...) for databaseUser objects
| Constructor Summary | |
|---|---|
OpenIdDatabaseHome()
|
|
| 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 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 ArrayList<String> |
findUserGroupsFromLogin(String strLogin,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Find user's groups by login |
static ArrayList<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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public OpenIdDatabaseHome()
| 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 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 service
BaseUser
public static ArrayList<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 ArrayList<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
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||