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 void
deleteLoginAttemptsOlderThan(Instant age)
void
deleteLoginAttemptsOlderThan(Instant age, String authServerId)
default Class<?>
getDomainType()
int
resetLoginAttempts(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:
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
default Class<?> getDomainType()
- Specified by:
getDomainType
in interfacecom.broadleafcommerce.common.extension.DomainTypeAware
-
-