Interface IUserParameterService


public interface IUserParameterService
User parameter service interface
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    countUserPasswordHistoryFromDate(Timestamp minDate, int nUserId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Get the number of password change done by a user since the given date.
    fr.paris.lutece.util.ReferenceList
    findAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Find all parameters
    fr.paris.lutece.util.ReferenceItem
    findByKey(String strParameterKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Get the parameter from a given key
    getEncryptionAlgorithm(fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Get the encryption algorithm
    boolean
    isPasswordEncrypted(fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Check if the passwords must be encrypted or not
    selectUserPasswordHistory(int nUserId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Gets the history of password of the given user
    void
    update(fr.paris.lutece.util.ReferenceItem userParam, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Update a parameter
  • Method Details

    • findByKey

      fr.paris.lutece.util.ReferenceItem findByKey(String strParameterKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Get the parameter from a given key
      Parameters:
      strParameterKey - the key
      plugin - the plugin
      Returns:
      the parameter
    • findAll

      fr.paris.lutece.util.ReferenceList findAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Find all parameters
      Parameters:
      plugin - the plugin
      Returns:
      a ReferenceList
    • update

      void update(fr.paris.lutece.util.ReferenceItem userParam, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Update a parameter
      Parameters:
      userParam - the parameter
      plugin - the plugin
    • isPasswordEncrypted

      boolean isPasswordEncrypted(fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Check if the passwords must be encrypted or not
      Parameters:
      plugin - the plugin
      Returns:
      true if they are encrypted, false otherwise
    • getEncryptionAlgorithm

      String getEncryptionAlgorithm(fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Get the encryption algorithm
      Parameters:
      plugin - the plugin
      Returns:
      the encryption algorithm
    • countUserPasswordHistoryFromDate

      int countUserPasswordHistoryFromDate(Timestamp minDate, int nUserId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Get the number of password change done by a user since the given date.
      Parameters:
      minDate - Minimum date to consider.
      nUserId - Id of the user
      plugin - the plugin
      Returns:
      The number of password change done by the user since the given date.
    • selectUserPasswordHistory

      List<String> selectUserPasswordHistory(int nUserId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Gets the history of password of the given user
      Parameters:
      nUserId - Id of the user
      plugin - the plugin
      Returns:
      The collection of recent passwords used by the user.