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 TypeMethodDescriptionvoidvoiddeleteResetPasswordAttemptsOlderThan(Instant age, String authServerId) default Class<?>intresetResetPasswordAttempts(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.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:
resetResetPasswordAttemptsin interfaceUserResetPasswordAttemptRepository<D extends JpaUserResetPasswordAttempt>
-
deleteResetPasswordAttemptsOlderThan
@Modifying @Query("delete from JpaUserResetPasswordAttempt attempt where attempt.attemptTime <= :age") void deleteResetPasswordAttemptsOlderThan(Instant age) - Specified by:
deleteResetPasswordAttemptsOlderThanin 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:
deleteResetPasswordAttemptsOlderThanin interfaceUserResetPasswordAttemptRepository<D extends JpaUserResetPasswordAttempt>
-
getDomainType
- Specified by:
getDomainTypein interfacecom.broadleafcommerce.common.extension.DomainTypeAware
-