|
Spring LDAP | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface OdmManager
The OdmManager interface provides generic CRUD (create/read/update/delete) and searching operations against an LDAP directory.
Each managed Java class must be appropriately annotated using
org.springframework.ldap.odm.annotations
.
Entry
,
Attribute
,
Id
,
Transient
Method Summary | ||
---|---|---|
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. |
|
|
findAll(Class<T> clazz,
Name base,
SearchControls searchControls)
Deprecated. Find all entries in the LDAP directory of a given type. |
|
|
read(Class<T> clazz,
Name dn)
Deprecated. Read a named entry from the LDAP directory. |
|
|
search(Class<T> clazz,
LdapQuery query)
Deprecated. Search for entries in the LDAP directory. |
|
|
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. |
Method Detail |
---|
<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 specification
NamingException
- on error.LdapQueryBuilder
|
Spring LDAP | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |