public interface OdmManager
Each managed Java class must be appropriately annotated using
org.springframework.ldap.odm.annotations
.
Modifier and Type | Method and Description |
---|---|
void |
create(Object entry)
Create the given entry in the LDAP directory.
|
void |
delete(Object entry)
Delete an entry from the LDAP directory.
|
<T> List<T> |
findAll(Class<T> clazz,
Name base,
SearchControls searchControls)
Find all entries in the LDAP directory of a given type.
|
<T> T |
read(Class<T> clazz,
Name dn)
Read a named entry from the LDAP directory.
|
<T> List<T> |
search(Class<T> clazz,
Name base,
String filter,
SearchControls searchControls)
Search for entries in the LDAP directory.
|
void |
update(Object entry)
Update the given entry in the LDAP directory.
|
<T> T read(Class<T> clazz, Name dn)
T
- The Java type to returnclazz
- The Java type to returndn
- The distinguished name of the entry to read from the LDAP directory.NamingException
- on error.void create(Object entry)
entry
- The entry to be create, it must not already exist in the directory.NamingException
- on error.void update(Object entry)
entry
- The entry to update, it must already exist in the directory.NamingException
- on error.void delete(Object entry)
entry
- The entry to delete, it must already exist in the directory.NamingException
- on error.<T> List<T> findAll(Class<T> clazz, Name base, SearchControls searchControls)
T
- The Java type to returnclazz
- The Java type to returnbase
- The root of the sub-tree at which to begin the search.searchControls
- The scope of the search.NamingException
- on error.<T> List<T> search(Class<T> clazz, Name base, String filter, SearchControls searchControls)
Only those entries that both match the given search filter and are represented by the given Java class are returned
T
- The Java type to returnclazz
- The Java type to returnbase
- The root of the sub-tree at which to begin the search.filter
- An LDAP search filter.searchControls
- The scope of the search.NamingException
- on error.Copyright © 2005–2016 The Spring LDAP Framework. All rights reserved.