Interface IAiUserRateLimitDAO

All Known Implementing Classes:
AiUserRateLimitDAO

public interface IAiUserRateLimitDAO
IAiUserRateLimitDAO Interface
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    delete(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Delete a record from the table
    findByUserId(String strUserId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Find the rate limit by user ID
    void
    insert(AiUserRateLimit aiUserRateLimit, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Insert a new record in the table
    load(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Load the data from the table
    void
    removeExpiredEntries(Timestamp cutoffTimestamp, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Remove expired rate limit entries
    void
    store(AiUserRateLimit aiUserRateLimit, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Update the record in the table
  • Method Details

    • insert

      void insert(AiUserRateLimit aiUserRateLimit, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Insert a new record in the table
      Parameters:
      aiUserRateLimit - instance of the AiUserRateLimit object to insert
      plugin - the Plugin
    • store

      void store(AiUserRateLimit aiUserRateLimit, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Update the record in the table
      Parameters:
      aiUserRateLimit - the reference of the AiUserRateLimit
      plugin - the Plugin
    • delete

      void delete(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Delete a record from the table
      Parameters:
      nKey - The identifier of the AiUserRateLimit to delete
      plugin - the Plugin
    • load

      Optional<AiUserRateLimit> load(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data from the table
      Parameters:
      nKey - The identifier of the aiUserRateLimit
      plugin - the Plugin
      Returns:
      The instance of the aiUserRateLimit
    • findByUserId

      Optional<AiUserRateLimit> findByUserId(String strUserId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Find the rate limit by user ID
      Parameters:
      strUserId - The user ID
      plugin - the Plugin
      Returns:
      The instance of the AiUserRateLimit
    • removeExpiredEntries

      void removeExpiredEntries(Timestamp cutoffTimestamp, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Remove expired rate limit entries
      Parameters:
      cutoffTimestamp - The cutoff timestamp
      plugin - the Plugin