Class SimpleLdapRepository<T>
java.lang.Object
org.springframework.data.ldap.repository.support.SimpleLdapRepository<T>
- All Implemented Interfaces:
LdapRepository<T>,CrudRepository<T,,Name> ListCrudRepository<T,,Name> Repository<T,Name>
- Direct Known Subclasses:
QuerydslLdapRepository
Base repository implementation for LDAP.
- Author:
- Mattias Hellborg Arthursson, Mark Paluch, Jens Schauder
-
Constructor Summary
ConstructorsConstructorDescriptionSimpleLdapRepository(org.springframework.ldap.core.LdapOperations ldapOperations, org.springframework.ldap.odm.core.ObjectDirectoryMapper odm, Class<T> entityType) Creates a newSimpleLdapRepository. -
Method Summary
Modifier and TypeMethodDescriptionlongcount()voidvoidvoidvoiddeleteAllById(Iterable<? extends Name> names) voiddeleteById(Name name) booleanexistsById(Name name) findAll()findAll(org.springframework.ldap.query.LdapQuery ldapQuery) Find all entries matching the specified query.findAllById(Iterable<Name> names) findOne(org.springframework.ldap.query.LdapQuery ldapQuery) Find one entry matching the specified query.<S extends T>
Ssave(S entity)
-
Constructor Details
-
SimpleLdapRepository
public SimpleLdapRepository(org.springframework.ldap.core.LdapOperations ldapOperations, org.springframework.ldap.odm.core.ObjectDirectoryMapper odm, Class<T> entityType) Creates a newSimpleLdapRepository.- Parameters:
ldapOperations- must not be null.odm- must not be null.entityType- must not be null.
-
-
Method Details
-
save
- Specified by:
savein interfaceCrudRepository<T,Name>
-
saveAll
- Specified by:
saveAllin interfaceCrudRepository<T,Name> - Specified by:
saveAllin interfaceListCrudRepository<T,Name>
-
findById
- Specified by:
findByIdin interfaceCrudRepository<T,Name>
-
existsById
- Specified by:
existsByIdin interfaceCrudRepository<T,Name>
-
findAll
- Specified by:
findAllin interfaceCrudRepository<T,Name> - Specified by:
findAllin interfaceListCrudRepository<T,Name>
-
findAllById
- Specified by:
findAllByIdin interfaceCrudRepository<T,Name> - Specified by:
findAllByIdin interfaceListCrudRepository<T,Name>
-
count
public long count()- Specified by:
countin interfaceCrudRepository<T,Name>
-
deleteById
- Specified by:
deleteByIdin interfaceCrudRepository<T,Name>
-
delete
- Specified by:
deletein interfaceCrudRepository<T,Name>
-
deleteAllById
- Specified by:
deleteAllByIdin interfaceCrudRepository<T,Name>
-
deleteAll
- Specified by:
deleteAllin interfaceCrudRepository<T,Name>
-
deleteAll
public void deleteAll()- Specified by:
deleteAllin interfaceCrudRepository<T,Name>
-
findOne
Description copied from interface:LdapRepositoryFind one entry matching the specified query.- Specified by:
findOnein interfaceLdapRepository<T>- Parameters:
ldapQuery- the query specification.- Returns:
- the found entry or
nullif no matching entry was found.
-
findAll
Description copied from interface:LdapRepositoryFind all entries matching the specified query.- Specified by:
findAllin interfaceLdapRepository<T>- Parameters:
ldapQuery- the query specification.- Returns:
- the entries matching the query.
-