Interface IDatabaseDAO
-
- All Known Implementing Classes:
DatabaseDAO
public interface IDatabaseDAO- Author:
- Etienne
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidcreateGroupForUser(int nIdUser, java.lang.String strGroupKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)Assign a group to uservoidcreateRoleForUser(int nIdUser, java.lang.String strRoleKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)Assign a role to uservoiddeleteGroupsForUser(int nIdUser, fr.paris.lutece.portal.service.plugin.Plugin plugin)Delete groups for a uservoiddeleteRolesForUser(int nIdUser, fr.paris.lutece.portal.service.plugin.Plugin plugin)Delete roles for a userintfindUserIdFromLogin(java.lang.String strLogin, fr.paris.lutece.portal.service.plugin.Plugin plugin)Get the id of a user from his loginjava.util.List<DatabaseUser>selectGroupUsersFromGroupKey(java.lang.String strGroupKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)Find assigned users to the given groupjava.util.Collection<java.lang.String>selectLoginListForRoleKey(java.lang.String strRoleKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the list of DatabaseUsers for a Lutece roleBaseUserselectLuteceUserByLogin(java.lang.String strLogin, fr.paris.lutece.portal.service.plugin.Plugin plugin, fr.paris.lutece.portal.service.security.LuteceAuthentication authenticationService)Find users by loginjava.util.Collection<BaseUser>selectLuteceUserList(fr.paris.lutece.portal.service.plugin.Plugin plugin, fr.paris.lutece.portal.service.security.LuteceAuthentication authenticationService)Load the list ofBaseUserjava.sql.TimestampselectPasswordMaxValideDateFromLogin(java.lang.String strLogin, fr.paris.lutece.portal.service.plugin.Plugin plugin)Gets the password max valid date of a user from his login.booleanselectResetPasswordFromLogin(java.lang.String strLogin, fr.paris.lutece.portal.service.plugin.Plugin plugin)Check if a user has reset his password from his loginjava.util.List<java.lang.String>selectUserGroupsFromLogin(java.lang.String strLogin, fr.paris.lutece.portal.service.plugin.Plugin plugin)Find user's groups by loginjava.util.List<java.lang.String>selectUserRolesFromLogin(java.lang.String strLogin, fr.paris.lutece.portal.service.plugin.Plugin plugin)Select the list of DatabaseUsers for a loginvoidupdateResetPasswordFromLogin(java.lang.String strUserName, boolean bNewValue, fr.paris.lutece.portal.service.plugin.Plugin plugin)Update the reset password attribut of a user from his login
-
-
-
Method Detail
-
selectLuteceUserByLogin
BaseUser selectLuteceUserByLogin(java.lang.String strLogin, fr.paris.lutece.portal.service.plugin.Plugin plugin, fr.paris.lutece.portal.service.security.LuteceAuthentication authenticationService)
Find users by login- Parameters:
strLogin- the loginplugin- The Plugin using this data access serviceauthenticationService- the LuteceAuthentication object- Returns:
- BaseUser the user corresponding to the login
-
selectResetPasswordFromLogin
boolean selectResetPasswordFromLogin(java.lang.String strLogin, fr.paris.lutece.portal.service.plugin.Plugin plugin)Check if a user has reset his password from his login- Parameters:
strLogin- the loginplugin- The Plugin using this data access serviceauthenticationService- the LuteceAuthentication object- Returns:
- boolean true if the password vhas been reset, false otherwise
-
selectPasswordMaxValideDateFromLogin
java.sql.Timestamp selectPasswordMaxValideDateFromLogin(java.lang.String strLogin, fr.paris.lutece.portal.service.plugin.Plugin plugin)Gets the password max valid date of a user from his login.- Parameters:
strLogin- the login of the userplugin- The plugin- Returns:
- The date of end of validity of the password of the user, or null if none has been set.
-
selectLuteceUserList
java.util.Collection<BaseUser> selectLuteceUserList(fr.paris.lutece.portal.service.plugin.Plugin plugin, fr.paris.lutece.portal.service.security.LuteceAuthentication authenticationService)
Load the list ofBaseUser- Parameters:
plugin- The Plugin using this data access serviceauthenticationService- the authentication service- Returns:
- The Collection of the
BaseUser
-
selectUserRolesFromLogin
java.util.List<java.lang.String> selectUserRolesFromLogin(java.lang.String strLogin, fr.paris.lutece.portal.service.plugin.Plugin plugin)Select the list of DatabaseUsers for a login- Parameters:
strLogin- The login of DatabaseUserplugin- The Plugin using this data access service- Returns:
- The Collection of the DatabaseUsers
-
deleteRolesForUser
void deleteRolesForUser(int nIdUser, fr.paris.lutece.portal.service.plugin.Plugin plugin)Delete roles for a user- Parameters:
nIdUser- The id of the userplugin- 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 userstrRoleKey- The key of the roleplugin- The Plugin using this data access service
-
selectUserGroupsFromLogin
java.util.List<java.lang.String> selectUserGroupsFromLogin(java.lang.String strLogin, fr.paris.lutece.portal.service.plugin.Plugin plugin)Find user's groups by login- Parameters:
strLogin- the loginplugin- The Plugin using this data access service- Returns:
- ArrayList the group key list corresponding to the login
-
selectLoginListForRoleKey
java.util.Collection<java.lang.String> selectLoginListForRoleKey(java.lang.String strRoleKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the list of DatabaseUsers for a Lutece role- Parameters:
strRoleKey- The role key of DatabaseUserplugin- The Plugin using this data access service- Returns:
- The Collection of the logins
-
deleteGroupsForUser
void deleteGroupsForUser(int nIdUser, fr.paris.lutece.portal.service.plugin.Plugin plugin)Delete groups for a user- Parameters:
nIdUser- The id of the userplugin- The Plugin using this data access service
-
createGroupForUser
void createGroupForUser(int nIdUser, java.lang.String strGroupKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)Assign a group to user- Parameters:
nIdUser- The id of the userstrGroupKey- The key of the groupplugin- The Plugin using this data access service
-
selectGroupUsersFromGroupKey
java.util.List<DatabaseUser> selectGroupUsersFromGroupKey(java.lang.String strGroupKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Find assigned users to the given group- Parameters:
strGroupKey- The group keyplugin- Plugin- Returns:
- a list of DatabaseUser
-
updateResetPasswordFromLogin
void updateResetPasswordFromLogin(java.lang.String strUserName, boolean bNewValue, fr.paris.lutece.portal.service.plugin.Plugin plugin)Update the reset password attribut of a user from his login- Parameters:
strUserName- Login of the user to updatebNewValue- New valueplugin- The plugin
-
findUserIdFromLogin
int findUserIdFromLogin(java.lang.String strLogin, fr.paris.lutece.portal.service.plugin.Plugin plugin)Get the id of a user from his login- Parameters:
strLogin- Login of the userplugin- The plugin- Returns:
- The id of the user
-
-