Class HibernatePasswordHistoryDAO

    • Method Detail

      • cleanOldHistories

        public void cleanOldHistories​(long userId,
                                      int retain)
        Description copied from interface: PasswordHistoryDAO
        This method deletes all the histories maintaining the most recent ones. If retain is 0 or -1, the cancellation is not made.
        Specified by:
        cleanOldHistories in interface PasswordHistoryDAO
        Parameters:
        userId - identifier of the user
        retain - the number of most recent histories to maintain