public final class MyluteceDirectoryUserDAO extends Object implements IMyluteceDirectoryUserDAO
| Constructor and Description |
|---|
MyluteceDirectoryUserDAO() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkActivated(String strLogin,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Check if user is activated
|
boolean |
checkPassword(String strLogin,
String strPassword,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Check the password for a DirectoryUser
|
int |
countUserPasswordHistoryFromDate(Timestamp minDate,
int nUserId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Get the number of password change done by a user since the given date.
|
void |
delete(MyluteceDirectoryUser directoryUser,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete a record from the table
|
List<Integer> |
findAllExpiredUserId(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Get the list of id of user with the expired status.
|
int |
findIdRecordFromLogin(String strLogin,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Get a user id from his login
|
List<Integer> |
getIdUsersToSendFirstAlert(Timestamp alertMaxDate,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Get the list of id of users that need to receive their first alert
|
List<Integer> |
getIdUsersToSendOtherAlert(Timestamp alertMaxDate,
Timestamp timeBetweenAlerts,
int maxNumberAlerts,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Get the list of id of users that need to receive their first alert
|
List<Integer> |
getIdUsersWithExpiredLifeTimeList(Timestamp currentTimestamp,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Get the list of id of users that have an expired time life but not the expired status
|
List<Integer> |
getIdUsersWithExpiredPasswordsList(Timestamp currentTimestamp,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Get the list of id of users that have an expired password but not the change password flag
|
int |
getNbAccountLifeTimeNotification(int nIdUser,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Get the number of notification send to a user to warn him about the expiration of his account
|
void |
insert(MyluteceDirectoryUser directoryUser,
String strPassword,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table.
|
void |
insertNewPasswordInHistory(String strPassword,
int nUserId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Log a password change in the password history
|
MyluteceDirectoryUser |
load(int nIdRecord,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of DirectoryUser from the table
|
void |
removeAllPasswordHistoryForUser(int nUserId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Remove every password saved in the password history for a user.
|
Collection<MyluteceDirectoryUser> |
selectDirectoryUserList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the list of directoryUsers
|
Collection<MyluteceDirectoryUser> |
selectDirectoryUserListForLogin(String strLogin,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the list of DirectoryUsers for a login
|
String |
selectPasswordByPrimaryKey(int nIdRecord,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the password of the specified user
|
List<String> |
selectUserPasswordHistory(int nUserID,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Gets the history of password of the given user
|
void |
store(MyluteceDirectoryUser directoryUser,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the record in the table
|
void |
updateChangePassword(List<Integer> listIdUser,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Set the "change password" flag of users to true
|
void |
updateNbAlert(List<Integer> listIdUser,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Increment the number of alert send to users by 1
|
void |
updatePassword(MyluteceDirectoryUser directoryUser,
String strNewPassword,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the record in the table
|
void |
updateResetPassword(MyluteceDirectoryUser user,
boolean bNewValue,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update of the databaseUser which is specified in parameter
|
void |
updateUserExpirationDate(int nIdUser,
Timestamp newExpirationDate,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the user expiration date with the new values.
|
void |
updateUserLastLoginDate(String strLogin,
Timestamp dateLastLogin,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update a user last login date
|
void |
updateUserStatus(List<Integer> ndUserList,
int nNewStatus,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update status of a list of user accounts
|
public void insert(MyluteceDirectoryUser directoryUser, String strPassword, fr.paris.lutece.portal.service.plugin.Plugin plugin)
insert in interface IMyluteceDirectoryUserDAOdirectoryUser - The directoryUser objectstrPassword - The user passwordplugin - The Plugin using this data access servicepublic MyluteceDirectoryUser load(int nIdRecord, fr.paris.lutece.portal.service.plugin.Plugin plugin)
load in interface IMyluteceDirectoryUserDAOnIdRecord - The identifier of Userplugin - The Plugin using this data access servicepublic void delete(MyluteceDirectoryUser directoryUser, fr.paris.lutece.portal.service.plugin.Plugin plugin)
delete in interface IMyluteceDirectoryUserDAOdirectoryUser - The directoryUser objectplugin - The Plugin using this data access servicepublic void store(MyluteceDirectoryUser directoryUser, fr.paris.lutece.portal.service.plugin.Plugin plugin)
store in interface IMyluteceDirectoryUserDAOdirectoryUser - The reference of directoryUserplugin - The Plugin using this data access servicepublic void updatePassword(MyluteceDirectoryUser directoryUser, String strNewPassword, fr.paris.lutece.portal.service.plugin.Plugin plugin)
updatePassword in interface IMyluteceDirectoryUserDAOdirectoryUser - The reference of directoryUserstrNewPassword - The new password to storeplugin - The Plugin using this data access servicepublic void updateResetPassword(MyluteceDirectoryUser user, boolean bNewValue, fr.paris.lutece.portal.service.plugin.Plugin plugin)
updateResetPassword in interface IMyluteceDirectoryUserDAObNewValue - New value of the reset password propertyplugin - The current plugin using this methodpublic String selectPasswordByPrimaryKey(int nIdRecord, fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectPasswordByPrimaryKey in interface IMyluteceDirectoryUserDAOnIdRecord - The Primary key of the directoryUserplugin - The current plugin using this methodpublic Collection<MyluteceDirectoryUser> selectDirectoryUserList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectDirectoryUserList in interface IMyluteceDirectoryUserDAOplugin - The Plugin using this data access servicepublic Collection<MyluteceDirectoryUser> selectDirectoryUserListForLogin(String strLogin, fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectDirectoryUserListForLogin in interface IMyluteceDirectoryUserDAOstrLogin - The login of DirectoryUserplugin - The Plugin using this data access servicepublic boolean checkPassword(String strLogin, String strPassword, fr.paris.lutece.portal.service.plugin.Plugin plugin)
checkPassword in interface IMyluteceDirectoryUserDAOstrLogin - The user login of DirectoryUserstrPassword - The password of DirectoryUserplugin - The Plugin using this data access servicepublic boolean checkActivated(String strLogin, fr.paris.lutece.portal.service.plugin.Plugin plugin)
checkActivated in interface IMyluteceDirectoryUserDAOstrLogin - The user login of DirectoryUserplugin - The Plugin using this data access servicepublic int findIdRecordFromLogin(String strLogin, fr.paris.lutece.portal.service.plugin.Plugin plugin)
findIdRecordFromLogin in interface IMyluteceDirectoryUserDAOstrLogin - The login of the userplugin - The Pluginpublic List<String> selectUserPasswordHistory(int nUserID, fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectUserPasswordHistory in interface IMyluteceDirectoryUserDAOnUserID - Id of the userplugin - The Pluginpublic int countUserPasswordHistoryFromDate(Timestamp minDate, int nUserId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
countUserPasswordHistoryFromDate in interface IMyluteceDirectoryUserDAOminDate - Minimum date to consider.nUserId - Id of the userplugin - The Pluginpublic void insertNewPasswordInHistory(String strPassword, int nUserId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
insertNewPasswordInHistory in interface IMyluteceDirectoryUserDAOstrPassword - New password of the usernUserId - Id of the userplugin - The Pluginpublic void removeAllPasswordHistoryForUser(int nUserId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
removeAllPasswordHistoryForUser in interface IMyluteceDirectoryUserDAOnUserId - Id of the userplugin - The Pluginpublic List<Integer> findAllExpiredUserId(fr.paris.lutece.portal.service.plugin.Plugin plugin)
findAllExpiredUserId in interface IMyluteceDirectoryUserDAOplugin - The Pluginpublic List<Integer> getIdUsersWithExpiredLifeTimeList(Timestamp currentTimestamp, fr.paris.lutece.portal.service.plugin.Plugin plugin)
getIdUsersWithExpiredLifeTimeList in interface IMyluteceDirectoryUserDAOcurrentTimestamp - Timestamp describing the current time.plugin - The Pluginpublic List<Integer> getIdUsersToSendFirstAlert(Timestamp alertMaxDate, fr.paris.lutece.portal.service.plugin.Plugin plugin)
getIdUsersToSendFirstAlert in interface IMyluteceDirectoryUserDAOalertMaxDate - The maximum date to send alerts.plugin - The Pluginpublic List<Integer> getIdUsersToSendOtherAlert(Timestamp alertMaxDate, Timestamp timeBetweenAlerts, int maxNumberAlerts, fr.paris.lutece.portal.service.plugin.Plugin plugin)
getIdUsersToSendOtherAlert in interface IMyluteceDirectoryUserDAOalertMaxDate - The maximum date to send alerts.timeBetweenAlerts - Timestamp describing the time between two alerts.maxNumberAlerts - Maximum number of alerts to send to a userplugin - The Pluginpublic List<Integer> getIdUsersWithExpiredPasswordsList(Timestamp currentTimestamp, fr.paris.lutece.portal.service.plugin.Plugin plugin)
getIdUsersWithExpiredPasswordsList in interface IMyluteceDirectoryUserDAOcurrentTimestamp - Timestamp describing the current time.plugin - The pluginpublic void updateUserStatus(List<Integer> ndUserList, int nNewStatus, fr.paris.lutece.portal.service.plugin.Plugin plugin)
updateUserStatus in interface IMyluteceDirectoryUserDAOndUserList - List of user accounts to updatenNewStatus - New status of the userplugin - The Pluginpublic void updateNbAlert(List<Integer> listIdUser, fr.paris.lutece.portal.service.plugin.Plugin plugin)
updateNbAlert in interface IMyluteceDirectoryUserDAOlistIdUser - The list of users to updateplugin - The Pluginpublic void updateChangePassword(List<Integer> listIdUser, fr.paris.lutece.portal.service.plugin.Plugin plugin)
updateChangePassword in interface IMyluteceDirectoryUserDAOlistIdUser - The list of users to updateplugin - The pluginpublic void updateUserExpirationDate(int nIdUser,
Timestamp newExpirationDate,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
updateUserExpirationDate in interface IMyluteceDirectoryUserDAOnIdUser - Id of the user to updatenewExpirationDate - Id of the user to updateplugin - The Pluginpublic int getNbAccountLifeTimeNotification(int nIdUser,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
getNbAccountLifeTimeNotification in interface IMyluteceDirectoryUserDAOnIdUser - Id of the userplugin - The pluginpublic void updateUserLastLoginDate(String strLogin, Timestamp dateLastLogin, fr.paris.lutece.portal.service.plugin.Plugin plugin)
updateUserLastLoginDate in interface IMyluteceDirectoryUserDAOstrLogin - Login of the user to updatedateLastLogin - date of the last login of the userplugin - The pluginCopyright © 2017 City of Paris. All rights reserved.