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 TypeMethodDescriptionvoid
void
deleteLoginAttemptsOlderThan
(Instant age, String authServerId) default Class<?>
int
resetLoginAttempts
(String username, String authServerId) Methods inherited from interface org.springframework.data.repository.CrudRepository
count, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById, findAll, findAllById, findById, save, saveAll
Methods 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:
resetLoginAttempts
in interfaceUserLoginAttemptRepository<D extends JpaUserLoginAttempt>
-
deleteLoginAttemptsOlderThan
@Modifying @Query("delete from JpaUserLoginAttempt attempt where attempt.attemptTime <= :age") void deleteLoginAttemptsOlderThan(Instant age) - Specified by:
deleteLoginAttemptsOlderThan
in 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:
deleteLoginAttemptsOlderThan
in interfaceUserLoginAttemptRepository<D extends JpaUserLoginAttempt>
-
getDomainType
- Specified by:
getDomainType
in interfacecom.broadleafcommerce.common.extension.DomainTypeAware
-