Class U2FDeviceRegistrationCouchDbRepository

    • Field Summary

      • Fields inherited from class org.ektorp.support.CouchDbRepositorySupport

        AUTO_UPDATE_VIEW_ON_CHANGE, db, log, stdDesignDocumentId, type
    • Constructor Summary

      Constructors 
      Constructor Description
      U2FDeviceRegistrationCouchDbRepository​(org.ektorp.CouchDbConnector couchDbConnector, org.ektorp.CouchDbInstance couchDbInstance, boolean createIfNotExists)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void deleteAll()
      Delete all records without revision checks.
      void deleteRecord​(CouchDbU2FDeviceRegistration record)
      Delete a record without revision checks.
      java.util.List<CouchDbU2FDeviceRegistration> findByDateBefore​(java.time.LocalDate expirationDate)
      Find expired records.
      java.util.List<CouchDbU2FDeviceRegistration> findByUsername​(java.lang.String username)
      Find by username.
      • Methods inherited from class org.ektorp.support.CouchDbRepositorySupport

        add, contains, createQuery, debugDesignDoc, get, get, get, getAll, getDesignDocumentFactory, initStandardDesignDocument, queryView, queryView, queryView, queryView, remove, setDesignDocumentFactory, update
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • U2FDeviceRegistrationCouchDbRepository

        public U2FDeviceRegistrationCouchDbRepository​(org.ektorp.CouchDbConnector couchDbConnector,
                                                      org.ektorp.CouchDbInstance couchDbInstance,
                                                      boolean createIfNotExists)
    • Method Detail

      • findByUsername

        public java.util.List<CouchDbU2FDeviceRegistration> findByUsername​(java.lang.String username)
        Find by username.
        Parameters:
        username - name to search for
        Returns:
        registrations for user
      • findByDateBefore

        public java.util.List<CouchDbU2FDeviceRegistration> findByDateBefore​(java.time.LocalDate expirationDate)
        Find expired records.
        Parameters:
        expirationDate - date to search until
        Returns:
        expired records
      • deleteRecord

        public void deleteRecord​(CouchDbU2FDeviceRegistration record)
        Delete a record without revision checks.
        Parameters:
        record - record to be deleted
      • deleteAll

        public void deleteAll()
        Delete all records without revision checks.