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 TypeMethodDescriptionvoidvoiddeleteChangePasswordAttemptsOlderThan(Instant age, String authServerId) default Class<?>intresetChangePasswordAttempts(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.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:
resetChangePasswordAttemptsin interfaceUserChangePasswordAttemptRepository<D extends JpaUserChangePasswordAttempt>
-
deleteChangePasswordAttemptsOlderThan
@Modifying @Query("delete from JpaUserChangePasswordAttempt attempt where attempt.attemptTime <= :age") void deleteChangePasswordAttemptsOlderThan(Instant age) - Specified by:
deleteChangePasswordAttemptsOlderThanin 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:
deleteChangePasswordAttemptsOlderThanin interfaceUserChangePasswordAttemptRepository<D extends JpaUserChangePasswordAttempt>
-
getDomainType
- Specified by:
getDomainTypein interfacecom.broadleafcommerce.common.extension.DomainTypeAware
-