Interface IUserParameterService


  • public interface IUserParameterService
    User parameter service interface
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      int countUserPasswordHistoryFromDate​(java.sql.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​(java.lang.String strParameterKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Get the parameter from a given key
      java.lang.String 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
      java.util.List<java.lang.String> 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 Detail

      • findByKey

        fr.paris.lutece.util.ReferenceItem findByKey​(java.lang.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

        java.lang.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​(java.sql.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

        java.util.List<java.lang.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.