Spring LDAP

org.springframework.ldap.repository
Interface LdapRepository<T>

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

public interface LdapRepository<T>
extends org.springframework.data.repository.CrudRepository<T,Name>

Ldap specific extensions to CrudRepository.

Since:
2.0
Author:
Mattias Hellborg Arthursson

Method Summary
 Iterable<T> findAll(LdapQuery ldapQuery)
          Find all entries matching the specified query.
 T findOne(LdapQuery ldapQuery)
          Find one entry matching the specified query.
 
Methods inherited from interface org.springframework.data.repository.CrudRepository
count, delete, delete, delete, deleteAll, exists, findAll, findAll, findOne, save, save
 

Method Detail

findOne

T findOne(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:
IncorrectResultSizeDataAccessException - if more than one entry matches the query.

findAll

Iterable<T> findAll(LdapQuery ldapQuery)
Find all entries matching the specified query.

Parameters:
ldapQuery - the query specification.
Returns:
the entries matching the query.

Spring LDAP