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