public class SimpleLdapRepository<T> extends Object implements LdapRepository<T>
| Constructor and Description |
|---|
SimpleLdapRepository(LdapOperations ldapOperations,
ObjectDirectoryMapper odm,
Class<T> clazz) |
| Modifier and Type | Method and Description |
|---|---|
long |
count() |
void |
delete(Iterable<? extends T> entities) |
void |
delete(Name name) |
void |
delete(T entity) |
void |
deleteAll() |
boolean |
exists(Name name) |
List<T> |
findAll() |
List<T> |
findAll(Iterable<Name> names) |
List<T> |
findAll(LdapQuery ldapQuery)
Find all entries matching the specified query.
|
T |
findOne(LdapQuery ldapQuery)
Find one entry matching the specified query.
|
T |
findOne(Name name) |
protected Class<T> |
getClazz() |
protected LdapOperations |
getLdapOperations() |
<S extends T> |
save(Iterable<S> entities) |
<S extends T> |
save(S entity) |
public SimpleLdapRepository(LdapOperations ldapOperations, ObjectDirectoryMapper odm, Class<T> clazz)
protected LdapOperations getLdapOperations()
public long count()
public <S extends T> S save(S entity)
public List<T> findAll(LdapQuery ldapQuery)
LdapRepositoryfindAll in interface LdapRepository<T>ldapQuery - the query specification.public T findOne(LdapQuery ldapQuery)
LdapRepositoryfindOne in interface LdapRepository<T>ldapQuery - the query specification.null if no matching entry was found.public boolean exists(Name name)
public void delete(Name name)
public void delete(T entity)