Interface JpaUserChangePasswordAttemptRepository<D extends JpaUserChangePasswordAttempt>
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<D,
,String> com.broadleafcommerce.common.extension.DomainTypeAware
,org.springframework.data.repository.Repository<D,
,String> UserChangePasswordAttemptRepository<D>
@Repository
public interface JpaUserChangePasswordAttemptRepository<D extends JpaUserChangePasswordAttempt>
extends UserChangePasswordAttemptRepository<D>
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
deleteChangePasswordAttemptsOlderThan
(Instant age, String authServerId) default Class<?>
int
resetChangePasswordAttempts
(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.UserChangePasswordAttemptRepository
countByUsernameAndAuthServerIdAndAttemptTimeAfterAndConsideredTrueAndResultIs, countByUsernameAndAuthServerIdAndConsideredTrueAndResultIs, readByUsernameAndAuthServerIdAndAttemptTimeAfterAndConsideredTrueAndResultIs
-
Method Details
-
resetChangePasswordAttempts
@Modifying @Query("update JpaUserChangePasswordAttempt attempt set attempt.considered = false where attempt.username = :username and attempt.authServerId = :authServerId") int resetChangePasswordAttempts(String username, String authServerId) - Specified by:
resetChangePasswordAttempts
in interfaceUserChangePasswordAttemptRepository<D extends JpaUserChangePasswordAttempt>
-
deleteChangePasswordAttemptsOlderThan
@Modifying @Query("delete from JpaUserChangePasswordAttempt attempt where attempt.attemptTime <= :age") void deleteChangePasswordAttemptsOlderThan(Instant age) - Specified by:
deleteChangePasswordAttemptsOlderThan
in interfaceUserChangePasswordAttemptRepository<D extends JpaUserChangePasswordAttempt>
-
deleteChangePasswordAttemptsOlderThan
@Modifying @Query("delete from JpaUserChangePasswordAttempt attempt where attempt.attemptTime <= :age and attempt.authServerId = :authServerId") void deleteChangePasswordAttemptsOlderThan(Instant age, String authServerId) - Specified by:
deleteChangePasswordAttemptsOlderThan
in interfaceUserChangePasswordAttemptRepository<D extends JpaUserChangePasswordAttempt>
-
getDomainType
- Specified by:
getDomainType
in interfacecom.broadleafcommerce.common.extension.DomainTypeAware
-