Interface JpaUserLoginAttemptRepository<D extends JpaUserLoginAttempt>
-
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<D,String>,com.broadleafcommerce.common.extension.DomainTypeAware,org.springframework.data.repository.Repository<D,String>,UserLoginAttemptRepository<D>
@Repository public interface JpaUserLoginAttemptRepository<D extends JpaUserLoginAttempt> extends UserLoginAttemptRepository<D>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description voiddeleteLoginAttemptsOlderThan(Instant age)voiddeleteLoginAttemptsOlderThan(Instant age, String authServerId)default Class<?>getDomainType()intresetLoginAttempts(String username, String authServerId)-
Methods inherited from interface org.springframework.data.repository.CrudRepository
count, delete, deleteAll, deleteAll, deleteById, existsById, findAll, findAllById, findById, save, saveAll
-
Methods inherited from interface com.broadleafcommerce.auth.user.repository.UserLoginAttemptRepository
countByUsernameAndAuthServerIdAndAttemptTimeAfterAndConsideredTrue, countByUsernameAndAuthServerIdAndConsideredTrue, readByUsernameAndAuthServerIdAndAttemptTimeAfterAndConsideredTrue
-
-
-
-
Method Detail
-
resetLoginAttempts
@Modifying @Query("update JpaUserLoginAttempt attempt set attempt.considered = false where attempt.username = :username and attempt.authServerId = :authServerId") int resetLoginAttempts(String username, String authServerId)- Specified by:
resetLoginAttemptsin interfaceUserLoginAttemptRepository<D extends JpaUserLoginAttempt>
-
deleteLoginAttemptsOlderThan
@Modifying @Query("delete from JpaUserLoginAttempt attempt where attempt.attemptTime <= :age") void deleteLoginAttemptsOlderThan(Instant age)- Specified by:
deleteLoginAttemptsOlderThanin interfaceUserLoginAttemptRepository<D extends JpaUserLoginAttempt>
-
deleteLoginAttemptsOlderThan
@Modifying @Query("delete from JpaUserLoginAttempt attempt where attempt.attemptTime <= :age and attempt.authServerId = :authServerId") void deleteLoginAttemptsOlderThan(Instant age, String authServerId)- Specified by:
deleteLoginAttemptsOlderThanin interfaceUserLoginAttemptRepository<D extends JpaUserLoginAttempt>
-
getDomainType
default Class<?> getDomainType()
- Specified by:
getDomainTypein interfacecom.broadleafcommerce.common.extension.DomainTypeAware
-
-