Interface IAccountLifeTimeService
public interface IAccountLifeTimeService
Account life time service interface
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddParametersToModel(Map<String, String> model, Integer nIdUser) Add specifiques parameters to a given modelGet the body of the mail to send when a user account expireGet the body of the mail to send for a first notification of a user before his account expiregetIdUsersToSendFirstAlert(Timestamp alertMaxDate) Get the list of id of users that need to receive their first alertgetIdUsersToSendOtherAlert(Timestamp alertMaxDate, Timestamp timeBetweenAlerts, int maxNumberAlerts) Get the list of id of users that need to receive their first alertgetIdUsersWithExpiredLifeTimeList(Timestamp currentTimestamp) Get the list of id of users that have an expired time life but not the expired statusgetIdUsersWithExpiredPasswordsList(Timestamp currentTimestamp) Get the list of id of users that have an expired password but not the change password flagGet the body of the mail to send for a new notification of a user before his account expireGet the body of the mail to send when a password expiredfr.paris.lutece.portal.service.plugin.PluginGet the current plugingetUserMainEmail(int nUserId) Get the main email adresse of a uservoidsetUserStatusExpired(List<Integer> listIdUser) Set a user account status as expired.voidupdateChangePassword(List<Integer> listIdUser) Set the "change password" flag of users to truevoidupdateNbAlert(List<Integer> listIdUser) Increment the number of alert send to users by 1
-
Method Details
-
getIdUsersWithExpiredLifeTimeList
Get the list of id of users that have an expired time life but not the expired status- Parameters:
currentTimestamp- Timestamp describing the current time.- Returns:
- the list of id of users with expired time life
-
getIdUsersToSendFirstAlert
Get the list of id of users that need to receive their first alert- Parameters:
alertMaxDate- The maximum date to send alerts.- Returns:
- the list of id of users that need to receive their first alert
-
getIdUsersToSendOtherAlert
List<Integer> getIdUsersToSendOtherAlert(Timestamp alertMaxDate, Timestamp timeBetweenAlerts, int maxNumberAlerts) Get the list of id of users that need to receive their first alert- Parameters:
alertMaxDate- The maximum date to send alerts.timeBetweenAlerts- Timestamp describing the time between two alerts.maxNumberAlerts- Maximum number of alerts to send to a user- Returns:
- the list of id of users that need to receive their first alert
-
getIdUsersWithExpiredPasswordsList
Get the list of id of users that have an expired password but not the change password flag- Parameters:
currentTimestamp- Timestamp describing the current time.- Returns:
- the list of id of users with expired passwords
-
updateNbAlert
Increment the number of alert send to users by 1- Parameters:
listIdUser- The list of users to update
-
updateChangePassword
Set the "change password" flag of users to true- Parameters:
listIdUser- List of user's id to update
-
setUserStatusExpired
Set a user account status as expired. Expired user will be anonymized by an anonymization daemon- Parameters:
listIdUser- User accounts list to set as expired
-
getExpirationtMailBody
String getExpirationtMailBody()Get the body of the mail to send when a user account expire- Returns:
- The body of the mail to send
-
getFirstAlertMailBody
String getFirstAlertMailBody()Get the body of the mail to send for a first notification of a user before his account expire- Returns:
- The body of the mail to send
-
getOtherAlertMailBody
String getOtherAlertMailBody()Get the body of the mail to send for a new notification of a user before his account expire- Returns:
- The body of the mail to send
-
getPasswordExpiredMailBody
String getPasswordExpiredMailBody()Get the body of the mail to send when a password expired- Returns:
- The body of the mail to send
-
addParametersToModel
Add specifiques parameters to a given model- Parameters:
model- The modelnIdUser- The id of the user to add the parameters
-
getUserMainEmail
Get the main email adresse of a user- Parameters:
nUserId- Id of the user- Returns:
- The main email adresse of a user
-
getPlugin
fr.paris.lutece.portal.service.plugin.Plugin getPlugin()Get the current plugin- Returns:
- The plugin
-