Interface UserRepository

  • All Superinterfaces:
    org.springframework.data.repository.CrudRepository<User,​String>, org.springframework.data.jpa.repository.JpaRepository<User,​String>, org.springframework.data.repository.PagingAndSortingRepository<User,​String>, org.springframework.data.repository.query.QueryByExampleExecutor<User>, org.springframework.data.repository.Repository<User,​String>

    public interface UserRepository
    extends org.springframework.data.jpa.repository.JpaRepository<User,​String>
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      boolean existsByGroupsNameIn​(Collection<String> groupNames)  
      Optional<User> findById​(String username)  
      • Methods inherited from interface org.springframework.data.repository.CrudRepository

        count, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById, save
      • Methods inherited from interface org.springframework.data.jpa.repository.JpaRepository

        deleteAllByIdInBatch, deleteAllInBatch, deleteAllInBatch, deleteInBatch, findAll, findAll, findAll, findAll, findAllById, flush, getById, getOne, getReferenceById, saveAll, saveAllAndFlush, saveAndFlush
      • 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 Detail

      • findById

        @PreAuthorize("permitAll()")
        @EntityGraph(attributePaths="groups")
        @NonNull
        Optional<User> findById​(@NonNull
                                String username)
        Specified by:
        findById in interface org.springframework.data.repository.CrudRepository<User,​String>
      • existsByGroupsNameIn

        boolean existsByGroupsNameIn​(Collection<String> groupNames)