Interface IAccountLifeTimeService


public interface IAccountLifeTimeService
Account life time service interface
  • Method Details

    • getIdUsersWithExpiredLifeTimeList

      List<Integer> getIdUsersWithExpiredLifeTimeList(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

      List<Integer> getIdUsersToSendFirstAlert(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

      List<Integer> getIdUsersToSendOtherAlert(Timestamp alertMaxDate, 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
    • getIdUsersWithExpiredPasswordsList

      List<Integer> getIdUsersWithExpiredPasswordsList(Timestamp currentTimestamp)
      Get the list of id of users that have an expired password but not the change password flag
      Parameters:
      currentTimestamp - Timestamp describing the current time.
      Returns:
      the list of id of users with expired passwords
    • updateNbAlert

      void updateNbAlert(List<Integer> listIdUser)
      Increment the number of alert send to users by 1
      Parameters:
      listIdUser - The list of users to update
    • updateChangePassword

      void updateChangePassword(List<Integer> listIdUser)
      Set the "change password" flag of users to true
      Parameters:
      listIdUser - List of user's id to update
    • setUserStatusExpired

      void setUserStatusExpired(List<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

      String getExpirationtMailBody()
      Get the body of the mail to send when a user account expire
      Returns:
      The body of the mail to send
    • getFirstAlertMailBody

      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

      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
    • getPasswordExpiredMailBody

      String getPasswordExpiredMailBody()
      Get the body of the mail to send when a password expired
      Returns:
      The body of the mail to send
    • addParametersToModel

      void addParametersToModel(Map<String,String> model, Integer nIdUser)
      Add specifiques parameters to a given model
      Parameters:
      model - The model
      nIdUser - The id of the user to add the parameters
    • getUserMainEmail

      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