Interface IAccountLifeTimeService
-
public interface IAccountLifeTimeServiceAccount life time service interface
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddParametersToModel(java.util.Map<java.lang.String,java.lang.String> model, java.lang.Integer nIdUser)Add specifiques parameters to a given modeljava.lang.StringgetExpirationtMailBody()Get the body of the mail to send when a user account expirejava.lang.StringgetFirstAlertMailBody()Get the body of the mail to send for a first notification of a user before his account expirejava.util.List<java.lang.Integer>getIdUsersToSendFirstAlert(java.sql.Timestamp alertMaxDate)Get the list of id of users that need to receive their first alertjava.util.List<java.lang.Integer>getIdUsersToSendOtherAlert(java.sql.Timestamp alertMaxDate, java.sql.Timestamp timeBetweenAlerts, int maxNumberAlerts)Get the list of id of users that need to receive their first alertjava.util.List<java.lang.Integer>getIdUsersWithExpiredLifeTimeList(java.sql.Timestamp currentTimestamp)Get the list of id of users that have an expired time life but not the expired statusjava.util.List<java.lang.Integer>getIdUsersWithExpiredPasswordsList(java.sql.Timestamp currentTimestamp)Get the list of id of users that have an expired password but not the change password flagjava.lang.StringgetOtherAlertMailBody()Get the body of the mail to send for a new notification of a user before his account expirejava.lang.StringgetPasswordExpiredMailBody()Get the body of the mail to send when a password expiredfr.paris.lutece.portal.service.plugin.PlugingetPlugin()Get the current pluginjava.lang.StringgetUserMainEmail(int nUserId)Get the main email adresse of a uservoidsetUserStatusExpired(java.util.List<java.lang.Integer> listIdUser)Set a user account status as expired.voidupdateChangePassword(java.util.List<java.lang.Integer> listIdUser)Set the "change password" flag of users to truevoidupdateNbAlert(java.util.List<java.lang.Integer> listIdUser)Increment the number of alert send to users by 1
-
-
-
Method Detail
-
getIdUsersWithExpiredLifeTimeList
java.util.List<java.lang.Integer> getIdUsersWithExpiredLifeTimeList(java.sql.Timestamp currentTimestamp)
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
java.util.List<java.lang.Integer> getIdUsersToSendFirstAlert(java.sql.Timestamp alertMaxDate)
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
java.util.List<java.lang.Integer> getIdUsersToSendOtherAlert(java.sql.Timestamp alertMaxDate, java.sql.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
java.util.List<java.lang.Integer> getIdUsersWithExpiredPasswordsList(java.sql.Timestamp currentTimestamp)
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
void updateNbAlert(java.util.List<java.lang.Integer> listIdUser)
Increment the number of alert send to users by 1- Parameters:
listIdUser- The list of users to update
-
updateChangePassword
void updateChangePassword(java.util.List<java.lang.Integer> listIdUser)
Set the "change password" flag of users to true- Parameters:
listIdUser- List of user's id to update
-
setUserStatusExpired
void setUserStatusExpired(java.util.List<java.lang.Integer> listIdUser)
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
java.lang.String getExpirationtMailBody()
Get the body of the mail to send when a user account expire- Returns:
- The body of the mail to send
-
getFirstAlertMailBody
java.lang.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
java.lang.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
java.lang.String getPasswordExpiredMailBody()
Get the body of the mail to send when a password expired- Returns:
- The body of the mail to send
-
addParametersToModel
void addParametersToModel(java.util.Map<java.lang.String,java.lang.String> model, java.lang.Integer nIdUser)Add specifiques parameters to a given model- Parameters:
model- The modelnIdUser- The id of the user to add the parameters
-
getUserMainEmail
java.lang.String getUserMainEmail(int nUserId)
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
-
-