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, validateObject
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
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
public 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
PersistentLoginRepository
findByProfileIdAndToken
in interface PersistentLoginRepository
profileId
- the profile's IDtoken
- the tokenorg.craftercms.commons.mongo.MongoDataException
public void removeOlderThan(long seconds) throws org.craftercms.commons.mongo.MongoDataException
PersistentLoginRepository
removeOlderThan
in interface PersistentLoginRepository
seconds
- the number of secondsorg.craftercms.commons.mongo.MongoDataException
Copyright © 2023 CrafterCMS. All rights reserved.