Package org.apereo.cas.couchdb.u2f
Class U2FDeviceRegistrationCouchDbRepository
- java.lang.Object
-
- org.ektorp.support.CouchDbRepositorySupport<CouchDbU2FDeviceRegistration>
-
- org.apereo.cas.couchdb.u2f.U2FDeviceRegistrationCouchDbRepository
-
- All Implemented Interfaces:
org.ektorp.support.GenericRepository<CouchDbU2FDeviceRegistration>
public class U2FDeviceRegistrationCouchDbRepository extends org.ektorp.support.CouchDbRepositorySupport<CouchDbU2FDeviceRegistration>
- Since:
- 6.0.0
-
-
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 voiddeleteAll()Delete all records without revision checks.voiddeleteRecord(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.
-
-
-
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.
-
-