Interface LdapRepository<T>

All Superinterfaces:
org.springframework.data.repository.CrudRepository<T,Name>, org.springframework.data.repository.ListCrudRepository<T,Name>, org.springframework.data.repository.Repository<T,Name>
All Known Implementing Classes:
QuerydslLdapRepository, SimpleLdapRepository

public interface LdapRepository<T> extends org.springframework.data.repository.ListCrudRepository<T,Name>
Ldap specific extensions to CrudRepository.
Author:
Mattias Hellborg Arthursson, Mark Paluch
  • Method Summary

    Modifier and Type
    Method
    Description
    findAll(org.springframework.ldap.query.LdapQuery ldapQuery)
    Find all entries matching the specified query.
    findOne(org.springframework.ldap.query.LdapQuery ldapQuery)
    Find one entry matching the specified query.

    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
  • Method Details

    • findOne

      Optional<T> findOne(org.springframework.ldap.query.LdapQuery ldapQuery)
      Find one entry matching the specified query.
      Parameters:
      ldapQuery - the query specification.
      Returns:
      the found entry or null if no matching entry was found.
      Throws:
      org.springframework.dao.IncorrectResultSizeDataAccessException - if more than one entry matches the query.
    • findAll

      List<T> findAll(org.springframework.ldap.query.LdapQuery ldapQuery)
      Find all entries matching the specified query.
      Parameters:
      ldapQuery - the query specification.
      Returns:
      the entries matching the query.