public class DatabaseAccountLifeTimeService extends Object implements fr.paris.lutece.plugins.mylutece.service.IAccountLifeTimeService
Modifier and Type | Field and Description |
---|---|
static String |
BEAN_DATABASE_ACCOUNT_LIFE_TIME_SERVICE |
Constructor and Description |
---|
DatabaseAccountLifeTimeService() |
Modifier and Type | Method and Description |
---|---|
void |
addParametersToModel(Map<String,String> model,
Integer nIdUser) |
String |
getExpirationtMailBody() |
String |
getFirstAlertMailBody() |
List<Integer> |
getIdUsersToSendFirstAlert(Timestamp alertMaxDate) |
List<Integer> |
getIdUsersToSendOtherAlert(Timestamp alertMaxDate,
Timestamp timeBetweenAlerts,
int maxNumberAlerts) |
List<Integer> |
getIdUsersWithExpiredLifeTimeList(Timestamp currentTimestamp) |
List<Integer> |
getIdUsersWithExpiredPasswordsList(Timestamp currentTimestamp) |
String |
getOtherAlertMailBody() |
String |
getPasswordExpiredMailBody() |
fr.paris.lutece.portal.service.plugin.Plugin |
getPlugin() |
static DatabaseAccountLifeTimeService |
getService()
Get an instance of the service
|
String |
getUserMainEmail(int nIdUser) |
void |
setUserStatusExpired(List<Integer> listIdUser) |
void |
updateChangePassword(List<Integer> listIdUser) |
void |
updateNbAlert(List<Integer> listIdUser) |
public static final String BEAN_DATABASE_ACCOUNT_LIFE_TIME_SERVICE
public static DatabaseAccountLifeTimeService getService()
public fr.paris.lutece.portal.service.plugin.Plugin getPlugin()
getPlugin
in interface fr.paris.lutece.plugins.mylutece.service.IAccountLifeTimeService
public List<Integer> getIdUsersWithExpiredLifeTimeList(Timestamp currentTimestamp)
getIdUsersWithExpiredLifeTimeList
in interface fr.paris.lutece.plugins.mylutece.service.IAccountLifeTimeService
public List<Integer> getIdUsersToSendFirstAlert(Timestamp alertMaxDate)
getIdUsersToSendFirstAlert
in interface fr.paris.lutece.plugins.mylutece.service.IAccountLifeTimeService
public List<Integer> getIdUsersToSendOtherAlert(Timestamp alertMaxDate, Timestamp timeBetweenAlerts, int maxNumberAlerts)
getIdUsersToSendOtherAlert
in interface fr.paris.lutece.plugins.mylutece.service.IAccountLifeTimeService
public void updateNbAlert(List<Integer> listIdUser)
updateNbAlert
in interface fr.paris.lutece.plugins.mylutece.service.IAccountLifeTimeService
public void updateChangePassword(List<Integer> listIdUser)
updateChangePassword
in interface fr.paris.lutece.plugins.mylutece.service.IAccountLifeTimeService
public void setUserStatusExpired(List<Integer> listIdUser)
setUserStatusExpired
in interface fr.paris.lutece.plugins.mylutece.service.IAccountLifeTimeService
public String getExpirationtMailBody()
getExpirationtMailBody
in interface fr.paris.lutece.plugins.mylutece.service.IAccountLifeTimeService
public String getFirstAlertMailBody()
getFirstAlertMailBody
in interface fr.paris.lutece.plugins.mylutece.service.IAccountLifeTimeService
public String getOtherAlertMailBody()
getOtherAlertMailBody
in interface fr.paris.lutece.plugins.mylutece.service.IAccountLifeTimeService
public String getPasswordExpiredMailBody()
getPasswordExpiredMailBody
in interface fr.paris.lutece.plugins.mylutece.service.IAccountLifeTimeService
public void addParametersToModel(Map<String,String> model, Integer nIdUser)
addParametersToModel
in interface fr.paris.lutece.plugins.mylutece.service.IAccountLifeTimeService
public String getUserMainEmail(int nIdUser)
getUserMainEmail
in interface fr.paris.lutece.plugins.mylutece.service.IAccountLifeTimeService
Copyright © 2018 City of Paris. All rights reserved.