Class AiUserRateLimitHome
java.lang.Object
fr.paris.lutece.plugins.wiki.modules.ai.business.AiUserRateLimitHome
This class provides instances management methods (create, find, ...) for AiUserRateLimit objects
-
Method Summary
Modifier and TypeMethodDescriptionstatic AiUserRateLimitcreate(AiUserRateLimit aiUserRateLimit) Create an instance of the aiUserRateLimit classstatic Optional<AiUserRateLimit>findByUserId(String strUserId) Find the rate limit by user IDstatic voidremove(int nKey) Remove the aiUserRateLimit whose identifier is specified in parameterstatic voidremoveExpiredEntries(Timestamp cutoffTimestamp) Remove expired rate limit entriesstatic AiUserRateLimitupdate(AiUserRateLimit aiUserRateLimit) Update of the aiUserRateLimit which is specified in parameter
-
Method Details
-
create
Create an instance of the aiUserRateLimit class- Parameters:
aiUserRateLimit- The instance of the AiUserRateLimit which contains the informations to store- Returns:
- The instance of aiUserRateLimit which has been created with its primary key
-
update
Update of the aiUserRateLimit which is specified in parameter- Parameters:
aiUserRateLimit- The instance of the AiUserRateLimit which contains the data to store- Returns:
- The instance of the aiUserRateLimit which has been updated
-
remove
public static void remove(int nKey) Remove the aiUserRateLimit whose identifier is specified in parameter- Parameters:
nKey- The aiUserRateLimit Id
-
findByUserId
Find the rate limit by user ID- Parameters:
strUserId- The user ID- Returns:
- An instance of AiUserRateLimit
-
removeExpiredEntries
Remove expired rate limit entries- Parameters:
cutoffTimestamp- The cutoff timestamp
-