Interface PersistentLoginRepository
- All Superinterfaces:
org.craftercms.commons.mongo.CrudRepository<PersistentLogin>
- All Known Implementing Classes:
PersistentLoginRepositoryImpl
public interface PersistentLoginRepository
extends org.craftercms.commons.mongo.CrudRepository<PersistentLogin>
DB repository for
PersistentLogin
s.- Author:
- avasquez
-
Method Summary
Modifier and TypeMethodDescriptionfindByProfileIdAndToken
(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.Methods inherited from interface org.craftercms.commons.mongo.CrudRepository
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
-
Method Details
-
findByProfileIdAndToken
PersistentLogin findByProfileIdAndToken(String profileId, String token) throws org.craftercms.commons.mongo.MongoDataException Returns the login associated to the given profile ID and token.- Parameters:
profileId
- the profile's IDtoken
- the token- Returns:
- the login
- Throws:
org.craftercms.commons.mongo.MongoDataException
-
removeOlderThan
void removeOlderThan(long seconds) throws org.craftercms.commons.mongo.MongoDataException Removes logins with timestamps older than the specified number of seconds.- Parameters:
seconds
- the number of seconds- Throws:
org.craftercms.commons.mongo.MongoDataException
-