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)
Deprecated.
Create the given entry in the LDAP directory.
|
void |
delete(Object entry)
Deprecated.
Delete an entry from the LDAP directory.
|
<T> List<T> |
findAll(Class<T> clazz,
Name base,
SearchControls searchControls)
Deprecated.
Find all entries in the LDAP directory of a given type.
|
<T> T |
read(Class<T> clazz,
Name dn)
Deprecated.
Read a named entry from the LDAP directory.
|
<T> List<T> |
search(Class<T> clazz,
LdapQuery query)
Deprecated.
Search for entries in the LDAP directory.
|
<T> List<T> |
search(Class<T> clazz,
Name base,
String filter,
SearchControls searchControls)
Deprecated.
Search for entries in the LDAP directory.
|
void |
update(Object entry)
Deprecated.
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.<T> List<T> search(Class<T> clazz, LdapQuery query)
Only those entries that both match the query search filter and are represented by the given Java class are returned.
T
- The Java type to returnclazz
- The Java type to returnquery
- the LDAP query specificationNamingException
- on error.LdapQueryBuilder