Class PersistentLoginRepositoryImpl

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method 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.
      • Methods inherited from class org.craftercms.commons.mongo.AbstractJongoRepository

        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
      • 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
    • Constructor Detail

      • PersistentLoginRepositoryImpl

        public PersistentLoginRepositoryImpl()
    • Method Detail

      • findByProfileIdAndToken

        public PersistentLogin findByProfileIdAndToken​(String profileId,
                                                       String token)
                                                throws org.craftercms.commons.mongo.MongoDataException
        Description copied from interface: PersistentLoginRepository
        Returns the login associated to the given profile ID and token.
        Specified by:
        findByProfileIdAndToken in interface PersistentLoginRepository
        Parameters:
        profileId - the profile's ID
        token - the token
        Returns:
        the login
        Throws:
        org.craftercms.commons.mongo.MongoDataException
      • removeOlderThan

        public void removeOlderThan​(long seconds)
                             throws org.craftercms.commons.mongo.MongoDataException
        Description copied from interface: PersistentLoginRepository
        Removes logins with timestamps older than the specified number of seconds.
        Specified by:
        removeOlderThan in interface PersistentLoginRepository
        Parameters:
        seconds - the number of seconds
        Throws:
        org.craftercms.commons.mongo.MongoDataException