Class VerificationTokenRepositoryImpl

java.lang.Object
org.craftercms.commons.mongo.AbstractJongoRepository<VerificationToken>
org.craftercms.profile.repositories.impl.VerificationTokenRepositoryImpl
All Implemented Interfaces:
org.craftercms.commons.mongo.CrudRepository<VerificationToken>, VerificationTokenRepository

public class VerificationTokenRepositoryImpl extends org.craftercms.commons.mongo.AbstractJongoRepository<VerificationToken> implements VerificationTokenRepository
Default implementation of VerificationTokenRepository.
Author:
avasquez
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     

    Fields inherited from class org.craftercms.commons.mongo.AbstractJongoRepository

    clazz, collectionName, gridfs, jongo, queries
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    removeOlderThan(long seconds)
    Removes tokens 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 class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    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
  • Field Details

  • Constructor Details

    • VerificationTokenRepositoryImpl

      public VerificationTokenRepositoryImpl()
  • Method Details

    • removeOlderThan

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