fr.paris.lutece.plugins.mylutece.service
Interface IAccountLifeTimeService


public interface IAccountLifeTimeService

Account life time service interface


Method Summary
 void addParametersToModel(java.util.Map<java.lang.String,java.lang.String> model, java.lang.Integer nIdUser)
          Add specifiques parameters to a given model
 java.lang.String getExpirationtMailBody()
          Get the body of the mail to send when a user account expire
 java.lang.String getFirstAlertMailBody()
          Get the body of the mail to send for a first notification of a user before his account expire
 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
 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
 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
 java.lang.String getOtherAlertMailBody()
          Get the body of the mail to send for a new notification of a user before his account expire
 fr.paris.lutece.portal.service.plugin.Plugin getPlugin()
          Get the current plugin
 java.lang.String getUserMainEmail(int nUserId)
          Get the main email adresse of a user
 void setUserStatusExpired(java.util.List<java.lang.Integer> listIdUser)
          Set a user account status as expired.
 void updateNbAlert(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

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

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

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 model
nIdUser - 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


Copyright © 2012 Mairie de Paris. All Rights Reserved.