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
ConstructorDescriptionSimpleLdapRepository
(org.springframework.ldap.core.LdapOperations ldapOperations, org.springframework.ldap.odm.core.ObjectDirectoryMapper odm, Class<T> entityType) Creates a newSimpleLdapRepository
. -
Method Summary
Modifier and TypeMethodDescriptionlong
count()
void
void
void
void
deleteAllById
(Iterable<? extends Name> names) void
deleteById
(Name name) boolean
existsById
(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:
save
in interfaceCrudRepository<T,
Name>
-
saveAll
- Specified by:
saveAll
in interfaceCrudRepository<T,
Name> - Specified by:
saveAll
in interfaceListCrudRepository<T,
Name>
-
findById
- Specified by:
findById
in interfaceCrudRepository<T,
Name>
-
existsById
- Specified by:
existsById
in interfaceCrudRepository<T,
Name>
-
findAll
- Specified by:
findAll
in interfaceCrudRepository<T,
Name> - Specified by:
findAll
in interfaceListCrudRepository<T,
Name>
-
findAllById
- Specified by:
findAllById
in interfaceCrudRepository<T,
Name> - Specified by:
findAllById
in interfaceListCrudRepository<T,
Name>
-
count
public long count()- Specified by:
count
in interfaceCrudRepository<T,
Name>
-
deleteById
- Specified by:
deleteById
in interfaceCrudRepository<T,
Name>
-
delete
- Specified by:
delete
in interfaceCrudRepository<T,
Name>
-
deleteAllById
- Specified by:
deleteAllById
in interfaceCrudRepository<T,
Name>
-
deleteAll
- Specified by:
deleteAll
in interfaceCrudRepository<T,
Name>
-
deleteAll
public void deleteAll()- Specified by:
deleteAll
in interfaceCrudRepository<T,
Name>
-
findOne
Description copied from interface:LdapRepository
Find one entry matching the specified query.- Specified by:
findOne
in interfaceLdapRepository<T>
- Parameters:
ldapQuery
- the query specification.- Returns:
- the found entry or
null
if no matching entry was found.
-
findAll
Description copied from interface:LdapRepository
Find all entries matching the specified query.- Specified by:
findAll
in interfaceLdapRepository<T>
- Parameters:
ldapQuery
- the query specification.- Returns:
- the entries matching the query.
-