Interface AuthInfoRepository

All Superinterfaces:
AuthInfoRepositoryCustom, org.springframework.data.repository.CrudRepository<AuthInfo,UUID>, org.springframework.data.jpa.repository.JpaRepository<AuthInfo,UUID>, org.springframework.data.repository.ListCrudRepository<AuthInfo,UUID>, org.springframework.data.repository.ListPagingAndSortingRepository<AuthInfo,UUID>, org.springframework.data.repository.PagingAndSortingRepository<AuthInfo,UUID>, org.springframework.data.repository.query.QueryByExampleExecutor<AuthInfo>, org.springframework.data.repository.Repository<AuthInfo,UUID>

@Repository public interface AuthInfoRepository extends org.springframework.data.jpa.repository.JpaRepository<AuthInfo,UUID>, AuthInfoRepositoryCustom
  • Method Summary

    Modifier and Type
    Method
    Description
    long
     
     
     
     
    void
    setBlocked(UUID id, Instant blocked)
     

    Methods inherited from interface hu.rts.mike.example.dev.crm.repository.AuthInfoRepositoryCustom

    findAllForGrid

    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.jpa.repository.JpaRepository

    deleteAllByIdInBatch, deleteAllInBatch, deleteAllInBatch, deleteInBatch, findAll, findAll, flush, getById, getOne, getReferenceById, saveAllAndFlush, saveAndFlush

    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, findBy, findOne
  • Method Details

    • findByUsername

      Optional<AuthInfo> findByUsername(String username)
    • findByUsernameOrEmail

      Optional<AuthInfo> findByUsernameOrEmail(String username, String email)
    • findByRoles_PrivilegesAndBlockedIsNull

      List<AuthInfo> findByRoles_PrivilegesAndBlockedIsNull(Privilege privilege)
    • setBlocked

      @Modifying @Query("update AuthInfo ai set ai.blocked = ?2 where ai.id = ?1") void setBlocked(UUID id, Instant blocked)
    • countByRoles_name

      long countByRoles_name(String roleName)