public class PersistentLoginRepositoryImpl extends org.craftercms.commons.mongo.AbstractJongoRepository<PersistentLogin> implements PersistentLoginRepository
PersistentLogin.| Modifier and Type | Field and Description |
|---|---|
static String |
KEY_FIND_BY_PROFILE_ID_AND_TOKEN |
static String |
KEY_REMOVE_TOKENS_OLDER_THAN_QUERY |
| Constructor and Description |
|---|
PersistentLoginRepositoryImpl() |
| 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, createSortQuery, deleteFile, deleteFile, find, find, findAll, findById, findByStringId, findOne, findOne, getCollection, getFileInfo, getFileInfo, getQueryFor, init, insert, insert, listFilesByName, readFile, readFile, remove, remove, removeById, removeByStringId, returnList, returnSimple, save, save, saveFile, saveFile, setJongo, setQueries, update, update, update, update, updateFile, updateFile, updateFile, validateObject, validateObjectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcount, 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, updateFilepublic static final String KEY_FIND_BY_PROFILE_ID_AND_TOKEN
public static final String KEY_REMOVE_TOKENS_OLDER_THAN_QUERY
public PersistentLogin findByProfileIdAndToken(String profileId, String token) throws org.craftercms.commons.mongo.MongoDataException
PersistentLoginRepositoryfindByProfileIdAndToken in interface PersistentLoginRepositoryprofileId - the profile's IDtoken - the tokenorg.craftercms.commons.mongo.MongoDataExceptionpublic void removeOlderThan(long seconds)
throws org.craftercms.commons.mongo.MongoDataException
PersistentLoginRepositoryremoveOlderThan in interface PersistentLoginRepositoryseconds - the number of secondsorg.craftercms.commons.mongo.MongoDataExceptionCopyright © 2023 CrafterCMS. All rights reserved.