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
Modifier and TypeMethodDescriptionvoidvoiddeleteLoginAttemptsOlderThan(Instant age, String authServerId) default Class<?>intresetLoginAttempts(String username, String authServerId) Methods inherited from interface org.springframework.data.repository.CrudRepository
count, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById, findAll, findAllById, findById, save, saveAllMethods inherited from interface com.broadleafcommerce.auth.user.repository.UserLoginAttemptRepository
countByUsernameAndAuthServerIdAndAttemptTimeAfterAndConsideredTrue, countByUsernameAndAuthServerIdAndConsideredTrue, readByUsernameAndAuthServerIdAndAttemptTimeAfterAndConsideredTrue
-
Method Details
-
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
- Specified by:
getDomainTypein interfacecom.broadleafcommerce.common.extension.DomainTypeAware
-