Interface AttemptedLoginRepository

All Superinterfaces:
tech.corefinance.common.repository.CommonResourceRepository<AttemptedLogin,String>, org.springframework.data.repository.CrudRepository<AttemptedLogin,String>, org.springframework.data.repository.ListCrudRepository<AttemptedLogin,String>, org.springframework.data.repository.ListPagingAndSortingRepository<AttemptedLogin,String>, org.springframework.data.repository.PagingAndSortingRepository<AttemptedLogin,String>, org.springframework.data.repository.query.QueryByExampleExecutor<AttemptedLogin>, org.springframework.data.repository.Repository<AttemptedLogin,String>

@Repository @ConditionalOnProperty(prefix="tech.corefinance.security", name="authorize-check", havingValue="true", matchIfMissing=true) public interface AttemptedLoginRepository extends tech.corefinance.common.repository.CommonResourceRepository<AttemptedLogin,String>
  • Method Summary

    Modifier and Type
    Method
    Description
    long
    countByAccountAndEnabled(String account, boolean enabled)
     
    void
    updateEnabledByAccount(boolean enabled, String username, String email)
     

    Methods inherited from interface org.springframework.data.repository.CrudRepository

    count, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById, findById, save

    Methods inherited from interface org.springframework.data.repository.ListCrudRepository

    findAll, findAllById, saveAll

    Methods inherited from interface org.springframework.data.repository.ListPagingAndSortingRepository

    findAll

    Methods inherited from interface org.springframework.data.repository.PagingAndSortingRepository

    findAll

    Methods inherited from interface org.springframework.data.repository.query.QueryByExampleExecutor

    count, exists, findAll, findAll, findAll, findBy, findOne
  • Method Details

    • countByAccountAndEnabled

      long countByAccountAndEnabled(String account, boolean enabled)
    • updateEnabledByAccount

      @Modifying @Query("update AttemptedLogin u set u.enabled=:enabled where lower(account) like lower(:username) or lower(account) like lower(:email)") void updateEnabledByAccount(@Param("enabled") boolean enabled, @Param("username") String username, @Param("email") String email)