|
||||||||||
| 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.DatabaseUserDAO
public final class DatabaseUserDAO
This class provides Data Access methods for databaseUser objects
| Method Summary | |
|---|---|
boolean |
checkPassword(java.lang.String strLogin,
java.lang.String strPassword,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Check the password for a DatabaseUser |
int |
countUserPasswordHistoryFromDate(java.sql.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(DatabaseUser databaseUser,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete a record from the table |
java.util.List<java.lang.Integer> |
findAllExpiredUserId(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Get the list of id of user with the expired status. |
int |
findDatabaseUserIdFromLogin(java.lang.String strLogin,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Get a user id from his login |
java.util.List<java.lang.Integer> |
getIdUsersToSendFirstAlert(java.sql.Timestamp alertMaxDate,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Get the list of id of users that need to receive their first alert |
java.util.List<java.lang.Integer> |
getIdUsersToSendOtherAlert(java.sql.Timestamp alertMaxDate,
java.sql.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 |
java.util.List<java.lang.Integer> |
getIdUsersWithExpiredLifeTimeList(java.sql.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 |
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(DatabaseUser databaseUser,
java.lang.String strPassword,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table. |
void |
insertNewPasswordInHistory(java.lang.String strPassword,
int nUserId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Log a password change in the password history |
DatabaseUser |
load(int nUserId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of DatabaseUser from the table |
int |
newPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Generates a new primary key |
void |
removeAllPasswordHistoryForUser(int nUserId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Remove every password saved in the password history for a user. |
java.util.Collection<DatabaseUser> |
selectDatabaseUserList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the list of databaseUsers |
java.util.Collection<DatabaseUser> |
selectDatabaseUserListForEmail(java.lang.String strEmail,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the list of DatabaseUsers for a email |
java.util.Collection<DatabaseUser> |
selectDatabaseUserListForLogin(java.lang.String strLogin,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the list of DatabaseUsers for a login |
java.util.List<DatabaseUser> |
selectDatabaseUsersListByFilter(DatabaseUserFilter duFilter,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the list of DatabaseUsers by a filter |
java.lang.String |
selectPasswordByPrimaryKey(int nDatabaseUserId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the password of the specified user |
java.util.List<java.lang.String> |
selectUserPasswordHistory(int nUserID,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Gets the history of password of the given user |
void |
store(DatabaseUser databaseUser,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the record in the table |
void |
updateNbAlert(java.util.List<java.lang.Integer> listIdUser,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Increment the number of alert send to users by 1 |
void |
updatePassword(DatabaseUser databaseUser,
java.lang.String strNewPassword,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the record in the table |
void |
updateResetPassword(DatabaseUser databaseUser,
boolean bNewValue,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the record in the table |
void |
updateUserExpirationDate(int nIdUser,
java.sql.Timestamp newExpirationDate,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the user expiration date with the new values. |
void |
updateUserStatus(java.util.List<java.lang.Integer> listIdUser,
int nNewStatus,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update status of a list of user accounts |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public int newPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)
newPrimaryKey in interface IDatabaseUserDAOplugin - The Plugin using this data access service
public void insert(DatabaseUser databaseUser,
java.lang.String strPassword,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
insert in interface IDatabaseUserDAOdatabaseUser - The databaseUser objectstrPassword - The user passwordplugin - The Plugin using this data access service
public DatabaseUser load(int nUserId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
load in interface IDatabaseUserDAOnUserId - The identifier of databaseUserplugin - The Plugin using this data access service
public void delete(DatabaseUser databaseUser,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
delete in interface IDatabaseUserDAOdatabaseUser - The databaseUser objectplugin - The Plugin using this data access service
public void store(DatabaseUser databaseUser,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
store in interface IDatabaseUserDAOdatabaseUser - The reference of databaseUserplugin - The Plugin using this data access service
public void updatePassword(DatabaseUser databaseUser,
java.lang.String strNewPassword,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
updatePassword in interface IDatabaseUserDAOdatabaseUser - The reference of databaseUserstrNewPassword - The new password to storeplugin - The Plugin using this data access service
public void updateResetPassword(DatabaseUser databaseUser,
boolean bNewValue,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
updateResetPassword in interface IDatabaseUserDAOdatabaseUser - The reference of databaseUserbNewValue - The new value of the resetPassword attributeplugin - The Plugin using this data access service
public java.lang.String selectPasswordByPrimaryKey(int nDatabaseUserId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectPasswordByPrimaryKey in interface IDatabaseUserDAOnDatabaseUserId - The Primary key of the databaseUserplugin - The current plugin using this method
public java.util.Collection<DatabaseUser> selectDatabaseUserList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectDatabaseUserList in interface IDatabaseUserDAOplugin - The Plugin using this data access service
public java.util.Collection<DatabaseUser> selectDatabaseUserListForLogin(java.lang.String strLogin,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectDatabaseUserListForLogin in interface IDatabaseUserDAOstrLogin - The login of DatabaseUserplugin - The Plugin using this data access service
public java.util.Collection<DatabaseUser> selectDatabaseUserListForEmail(java.lang.String strEmail,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectDatabaseUserListForEmail in interface IDatabaseUserDAOstrEmail - The email of DatabaseUserplugin - The Plugin using this data access service
public boolean checkPassword(java.lang.String strLogin,
java.lang.String strPassword,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
checkPassword in interface IDatabaseUserDAOstrLogin - The user login of DatabaseUserstrPassword - The password of DatabaseUserplugin - The Plugin using this data access service
public java.util.List<DatabaseUser> selectDatabaseUsersListByFilter(DatabaseUserFilter duFilter,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectDatabaseUsersListByFilter in interface IDatabaseUserDAOduFilter - filterplugin - Plugin
public int findDatabaseUserIdFromLogin(java.lang.String strLogin,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
findDatabaseUserIdFromLogin in interface IDatabaseUserDAOstrLogin - The login of the userplugin - The plugin
public java.util.List<java.lang.String> selectUserPasswordHistory(int nUserID,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectUserPasswordHistory in interface IDatabaseUserDAOnUserID - Id of the userplugin - The plugin
public int countUserPasswordHistoryFromDate(java.sql.Timestamp minDate,
int nUserId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
countUserPasswordHistoryFromDate in interface IDatabaseUserDAOminDate - Minimum date to consider.nUserId - Id of the userplugin - The plugin
public void insertNewPasswordInHistory(java.lang.String strPassword,
int nUserId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
insertNewPasswordInHistory in interface IDatabaseUserDAOstrPassword - New password of the usernUserId - Id of the userplugin - The plugin
public void removeAllPasswordHistoryForUser(int nUserId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
removeAllPasswordHistoryForUser in interface IDatabaseUserDAOnUserId - Id of the userplugin - The pluginpublic java.util.List<java.lang.Integer> findAllExpiredUserId(fr.paris.lutece.portal.service.plugin.Plugin plugin)
findAllExpiredUserId in interface IDatabaseUserDAOplugin - The plugin
public java.util.List<java.lang.Integer> getIdUsersWithExpiredLifeTimeList(java.sql.Timestamp currentTimestamp,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
getIdUsersWithExpiredLifeTimeList in interface IDatabaseUserDAOcurrentTimestamp - Timestamp describing the current time.plugin - The plugin
public java.util.List<java.lang.Integer> getIdUsersToSendFirstAlert(java.sql.Timestamp alertMaxDate,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
getIdUsersToSendFirstAlert in interface IDatabaseUserDAOalertMaxDate - The maximum date to send alerts.plugin - The plugin
public java.util.List<java.lang.Integer> getIdUsersToSendOtherAlert(java.sql.Timestamp alertMaxDate,
java.sql.Timestamp timeBetweenAlerts,
int maxNumberAlerts,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
getIdUsersToSendOtherAlert in interface IDatabaseUserDAOalertMaxDate - 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 plugin
public void updateUserStatus(java.util.List<java.lang.Integer> listIdUser,
int nNewStatus,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
updateUserStatus in interface IDatabaseUserDAOlistIdUser - List of user accounts to updatenNewStatus - New status of the userplugin - The plugin
public void updateNbAlert(java.util.List<java.lang.Integer> listIdUser,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
updateNbAlert in interface IDatabaseUserDAOlistIdUser - The list of users to updateplugin - The plugin
public void updateUserExpirationDate(int nIdUser,
java.sql.Timestamp newExpirationDate,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
updateUserExpirationDate in interface IDatabaseUserDAOnIdUser - Id of the user to updatenewExpirationDate - Id of the user to updateplugin - The plugin
public int getNbAccountLifeTimeNotification(int nIdUser,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
getNbAccountLifeTimeNotification in interface IDatabaseUserDAOnIdUser - Id of the userplugin - The plugin
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||