fr.paris.lutece.plugins.mylutece.modules.database.authentication.service
Class DatabaseAccountLifeTimeService

java.lang.Object
  extended by 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.IAccountLifeTimeService

Service to handle account life time


Field Summary
static java.lang.String BEAN_DATABASE_ACCOUNT_LIFE_TIME_SERVICE
           
 
Constructor Summary
DatabaseAccountLifeTimeService()
           
 
Method Summary
 void addParametersToModel(java.util.Map<java.lang.String,java.lang.String> model, java.lang.Integer nIdUser)
          
 java.lang.String getExpirationtMailBody()
          
 java.lang.String getFirstAlertMailBody()
          
 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.lang.String getOtherAlertMailBody()
          
 fr.paris.lutece.portal.service.plugin.Plugin getPlugin()
          
static DatabaseAccountLifeTimeService getService()
          Get an instance of the service
 java.lang.String getUserMainEmail(int nIdUser)
          
 void setUserStatusExpired(java.util.List<java.lang.Integer> listIdUser)
          
 void updateNbAlert(java.util.List<java.lang.Integer> listIdUser)
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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
Constructor Detail

DatabaseAccountLifeTimeService

public DatabaseAccountLifeTimeService()
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:
getPlugin in interface fr.paris.lutece.plugins.mylutece.service.IAccountLifeTimeService

getIdUsersWithExpiredLifeTimeList

public java.util.List<java.lang.Integer> getIdUsersWithExpiredLifeTimeList(java.sql.Timestamp currentTimestamp)

Specified by:
getIdUsersWithExpiredLifeTimeList in interface fr.paris.lutece.plugins.mylutece.service.IAccountLifeTimeService

getIdUsersToSendFirstAlert

public java.util.List<java.lang.Integer> getIdUsersToSendFirstAlert(java.sql.Timestamp alertMaxDate)

Specified by:
getIdUsersToSendFirstAlert in interface fr.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:
getIdUsersToSendOtherAlert in interface fr.paris.lutece.plugins.mylutece.service.IAccountLifeTimeService

updateNbAlert

public void updateNbAlert(java.util.List<java.lang.Integer> listIdUser)

Specified by:
updateNbAlert in interface fr.paris.lutece.plugins.mylutece.service.IAccountLifeTimeService

setUserStatusExpired

public void setUserStatusExpired(java.util.List<java.lang.Integer> listIdUser)

Specified by:
setUserStatusExpired in interface fr.paris.lutece.plugins.mylutece.service.IAccountLifeTimeService

getExpirationtMailBody

public java.lang.String getExpirationtMailBody()

Specified by:
getExpirationtMailBody in interface fr.paris.lutece.plugins.mylutece.service.IAccountLifeTimeService

getFirstAlertMailBody

public java.lang.String getFirstAlertMailBody()

Specified by:
getFirstAlertMailBody in interface fr.paris.lutece.plugins.mylutece.service.IAccountLifeTimeService

getOtherAlertMailBody

public java.lang.String getOtherAlertMailBody()

Specified by:
getOtherAlertMailBody in interface fr.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:
addParametersToModel in interface fr.paris.lutece.plugins.mylutece.service.IAccountLifeTimeService

getUserMainEmail

public java.lang.String getUserMainEmail(int nIdUser)

Specified by:
getUserMainEmail in interface fr.paris.lutece.plugins.mylutece.service.IAccountLifeTimeService


Copyright © 2012 Mairie de Paris. All Rights Reserved.