|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IAccountLifeTimeService
Account life time service interface
Method Summary | |
---|---|
void |
addParametersToModel(Map<String,String> model,
Integer nIdUser)
Add specifiques parameters to a given model |
String |
getExpirationtMailBody()
Get the body of the mail to send when a user account expire |
String |
getFirstAlertMailBody()
Get the body of the mail to send for a first notification of a user before his account expire |
List<Integer> |
getIdUsersToSendFirstAlert(Timestamp alertMaxDate)
Get the list of id of users that need to receive their first alert |
List<Integer> |
getIdUsersToSendOtherAlert(Timestamp alertMaxDate,
Timestamp timeBetweenAlerts,
int maxNumberAlerts)
Get the list of id of users that need to receive their first alert |
List<Integer> |
getIdUsersWithExpiredLifeTimeList(Timestamp currentTimestamp)
Get the list of id of users that have an expired time life but not the expired status |
List<Integer> |
getIdUsersWithExpiredPasswordsList(Timestamp currentTimestamp)
Get the list of id of users that have an expired password but not the change password flag |
String |
getOtherAlertMailBody()
Get the body of the mail to send for a new notification of a user before his account expire |
String |
getPasswordExpiredMailBody()
Get the body of the mail to send when a password expired |
fr.paris.lutece.portal.service.plugin.Plugin |
getPlugin()
Get the current plugin |
String |
getUserMainEmail(int nUserId)
Get the main email adresse of a user |
void |
setUserStatusExpired(List<Integer> listIdUser)
Set a user account status as expired. |
void |
updateChangePassword(List<Integer> listIdUser)
Set the "change password" flag of users to true |
void |
updateNbAlert(List<Integer> listIdUser)
Increment the number of alert send to users by 1 |
Method Detail |
---|
List<Integer> getIdUsersWithExpiredLifeTimeList(Timestamp currentTimestamp)
currentTimestamp
- Timestamp describing the current time.
List<Integer> getIdUsersToSendFirstAlert(Timestamp alertMaxDate)
alertMaxDate
- The maximum date to send alerts.
List<Integer> getIdUsersToSendOtherAlert(Timestamp alertMaxDate, Timestamp timeBetweenAlerts, int maxNumberAlerts)
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
List<Integer> getIdUsersWithExpiredPasswordsList(Timestamp currentTimestamp)
currentTimestamp
- Timestamp describing the current time.
void updateNbAlert(List<Integer> listIdUser)
listIdUser
- The list of users to updatevoid updateChangePassword(List<Integer> listIdUser)
listIdUser
- List of user's id to updatevoid setUserStatusExpired(List<Integer> listIdUser)
listIdUser
- User accounts list to set as expiredString getExpirationtMailBody()
String getFirstAlertMailBody()
String getOtherAlertMailBody()
String getPasswordExpiredMailBody()
void addParametersToModel(Map<String,String> model, Integer nIdUser)
model
- The modelnIdUser
- The id of the user to add the parametersString getUserMainEmail(int nUserId)
nUserId
- Id of the user
fr.paris.lutece.portal.service.plugin.Plugin getPlugin()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |