Class DatabaseAccountLifeTimeService
- java.lang.Object
-
- fr.paris.lutece.plugins.mylutece.modules.database.authentication.service.DatabaseAccountLifeTimeService
-
- All Implemented Interfaces:
fr.paris.lutece.plugins.mylutece.service.IAccountLifeTimeService
public class DatabaseAccountLifeTimeService extends java.lang.Object implements fr.paris.lutece.plugins.mylutece.service.IAccountLifeTimeServiceService to handle account life time
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringBEAN_DATABASE_ACCOUNT_LIFE_TIME_SERVICE
-
Constructor Summary
Constructors Constructor Description DatabaseAccountLifeTimeService()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddParametersToModel(java.util.Map<java.lang.String,java.lang.String> model, java.lang.Integer nIdUser)java.lang.StringgetExpirationtMailBody()java.lang.StringgetFirstAlertMailBody()java.util.List<java.lang.Integer>getIdUsersToSendFirstAlert(java.sql.Timestamp alertMaxDate)java.util.List<java.lang.Integer>getIdUsersToSendOtherAlert(java.sql.Timestamp alertMaxDate, java.sql.Timestamp timeBetweenAlerts, int maxNumberAlerts)java.util.List<java.lang.Integer>getIdUsersWithExpiredLifeTimeList(java.sql.Timestamp currentTimestamp)java.util.List<java.lang.Integer>getIdUsersWithExpiredPasswordsList(java.sql.Timestamp currentTimestamp)java.lang.StringgetOtherAlertMailBody()java.lang.StringgetPasswordExpiredMailBody()fr.paris.lutece.portal.service.plugin.PlugingetPlugin()static DatabaseAccountLifeTimeServicegetService()Get an instance of the servicejava.lang.StringgetUserMainEmail(int nIdUser)voidsetUserStatusExpired(java.util.List<java.lang.Integer> listIdUser)voidupdateChangePassword(java.util.List<java.lang.Integer> listIdUser)voidupdateNbAlert(java.util.List<java.lang.Integer> listIdUser)
-
-
-
Field Detail
-
BEAN_DATABASE_ACCOUNT_LIFE_TIME_SERVICE
public static final java.lang.String BEAN_DATABASE_ACCOUNT_LIFE_TIME_SERVICE
- See Also:
- Constant Field Values
-
-
Method Detail
-
getService
public static DatabaseAccountLifeTimeService getService()
Get an instance of the service- Returns:
- An instance of the service
-
getPlugin
public fr.paris.lutece.portal.service.plugin.Plugin getPlugin()
- Specified by:
getPluginin interfacefr.paris.lutece.plugins.mylutece.service.IAccountLifeTimeService
-
getIdUsersWithExpiredLifeTimeList
public java.util.List<java.lang.Integer> getIdUsersWithExpiredLifeTimeList(java.sql.Timestamp currentTimestamp)
- Specified by:
getIdUsersWithExpiredLifeTimeListin interfacefr.paris.lutece.plugins.mylutece.service.IAccountLifeTimeService
-
getIdUsersToSendFirstAlert
public java.util.List<java.lang.Integer> getIdUsersToSendFirstAlert(java.sql.Timestamp alertMaxDate)
- Specified by:
getIdUsersToSendFirstAlertin interfacefr.paris.lutece.plugins.mylutece.service.IAccountLifeTimeService
-
getIdUsersToSendOtherAlert
public java.util.List<java.lang.Integer> getIdUsersToSendOtherAlert(java.sql.Timestamp alertMaxDate, java.sql.Timestamp timeBetweenAlerts, int maxNumberAlerts)- Specified by:
getIdUsersToSendOtherAlertin interfacefr.paris.lutece.plugins.mylutece.service.IAccountLifeTimeService
-
updateNbAlert
public void updateNbAlert(java.util.List<java.lang.Integer> listIdUser)
- Specified by:
updateNbAlertin interfacefr.paris.lutece.plugins.mylutece.service.IAccountLifeTimeService
-
updateChangePassword
public void updateChangePassword(java.util.List<java.lang.Integer> listIdUser)
- Specified by:
updateChangePasswordin interfacefr.paris.lutece.plugins.mylutece.service.IAccountLifeTimeService
-
setUserStatusExpired
public void setUserStatusExpired(java.util.List<java.lang.Integer> listIdUser)
- Specified by:
setUserStatusExpiredin interfacefr.paris.lutece.plugins.mylutece.service.IAccountLifeTimeService
-
getExpirationtMailBody
public java.lang.String getExpirationtMailBody()
- Specified by:
getExpirationtMailBodyin interfacefr.paris.lutece.plugins.mylutece.service.IAccountLifeTimeService
-
getFirstAlertMailBody
public java.lang.String getFirstAlertMailBody()
- Specified by:
getFirstAlertMailBodyin interfacefr.paris.lutece.plugins.mylutece.service.IAccountLifeTimeService
-
getOtherAlertMailBody
public java.lang.String getOtherAlertMailBody()
- Specified by:
getOtherAlertMailBodyin interfacefr.paris.lutece.plugins.mylutece.service.IAccountLifeTimeService
-
getPasswordExpiredMailBody
public java.lang.String getPasswordExpiredMailBody()
- Specified by:
getPasswordExpiredMailBodyin interfacefr.paris.lutece.plugins.mylutece.service.IAccountLifeTimeService
-
addParametersToModel
public void addParametersToModel(java.util.Map<java.lang.String,java.lang.String> model, java.lang.Integer nIdUser)- Specified by:
addParametersToModelin interfacefr.paris.lutece.plugins.mylutece.service.IAccountLifeTimeService
-
getUserMainEmail
public java.lang.String getUserMainEmail(int nIdUser)
- Specified by:
getUserMainEmailin interfacefr.paris.lutece.plugins.mylutece.service.IAccountLifeTimeService
-
getIdUsersWithExpiredPasswordsList
public java.util.List<java.lang.Integer> getIdUsersWithExpiredPasswordsList(java.sql.Timestamp currentTimestamp)
- Specified by:
getIdUsersWithExpiredPasswordsListin interfacefr.paris.lutece.plugins.mylutece.service.IAccountLifeTimeService
-
-