public interface PersistentLoginRepository extends org.craftercms.commons.mongo.CrudRepository<PersistentLogin>
PersistentLogin
s.Modifier and Type | Method and Description |
---|---|
PersistentLogin |
findByProfileIdAndToken(String profileId,
String token)
Returns the login associated to the given profile ID and token.
|
void |
removeOlderThan(long seconds)
Removes logins with timestamps older than the specified number of seconds.
|
count, count, count, deleteFile, deleteFile, find, find, findAll, findById, findByStringId, findOne, findOne, getFileInfo, getFileInfo, insert, insert, listFilesByName, readFile, readFile, remove, remove, removeById, removeByStringId, save, save, saveFile, saveFile, update, update, update, update, updateFile, updateFile, updateFile
PersistentLogin findByProfileIdAndToken(String profileId, String token) throws org.craftercms.commons.mongo.MongoDataException
profileId
- the profile's IDtoken
- the tokenorg.craftercms.commons.mongo.MongoDataException
void removeOlderThan(long seconds) throws org.craftercms.commons.mongo.MongoDataException
seconds
- the number of secondsorg.craftercms.commons.mongo.MongoDataException
Copyright © 2023 CrafterCMS. All rights reserved.