public final class OdmManagerImpl extends Object implements OdmManager
OdmManager which
uses ConverterManager to
convert between Java and LDAP representations of attribute values.| Constructor and Description |
|---|
OdmManagerImpl(ConverterManager converterManager,
ContextSource contextSource)
Deprecated.
|
OdmManagerImpl(ConverterManager converterManager,
ContextSource contextSource,
Set<Class<?>> managedClasses)
Deprecated.
|
OdmManagerImpl(ConverterManager converterManager,
LdapOperations ldapOperations,
Set<Class<?>> managedClasses)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addManagedClass(Class<?> managedClass)
Deprecated.
Adds an
org.springframework.ldap.odm.annotations annotated class to the set
managed by this OdmManager. |
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> managedClass,
Name base,
SearchControls scope)
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> managedClass,
Name base,
String filter,
SearchControls scope)
Deprecated.
Search for entries in the LDAP directory.
|
void |
update(Object entry)
Deprecated.
Update the given entry in the LDAP directory.
|
public OdmManagerImpl(ConverterManager converterManager, LdapOperations ldapOperations, Set<Class<?>> managedClasses)
public OdmManagerImpl(ConverterManager converterManager, ContextSource contextSource, Set<Class<?>> managedClasses)
public OdmManagerImpl(ConverterManager converterManager, ContextSource contextSource)
public void addManagedClass(Class<?> managedClass)
org.springframework.ldap.odm.annotations annotated class to the set
managed by this OdmManager.managedClass - The class to add to the managed set.public <T> T read(Class<T> clazz, Name dn)
OdmManagerread in interface OdmManagerT - The Java type to returnclazz - The Java type to returndn - The distinguished name of the entry to read from the LDAP directory.public void create(Object entry)
OdmManagercreate in interface OdmManagerentry - The entry to be create, it must not already exist in the directory.public void update(Object entry)
OdmManagerupdate in interface OdmManagerentry - The entry to update, it must already exist in the directory.public void delete(Object entry)
OdmManagerdelete in interface OdmManagerentry - The entry to delete, it must already exist in the directory.public <T> List<T> search(Class<T> managedClass, Name base, String filter, SearchControls scope)
OdmManagerOnly those entries that both match the given search filter and are represented by the given Java class are returned
search in interface OdmManagerT - The Java type to returnmanagedClass - The Java type to returnbase - The root of the sub-tree at which to begin the search.filter - An LDAP search filter.scope - The scope of the search.public <T> List<T> search(Class<T> clazz, LdapQuery query)
OdmManagerOnly those entries that both match the query search filter and are represented by the given Java class are returned.
search in interface OdmManagerT - The Java type to returnclazz - The Java type to returnquery - the LDAP query specificationLdapQueryBuilderpublic <T> List<T> findAll(Class<T> managedClass, Name base, SearchControls scope)
OdmManagerfindAll in interface OdmManagerT - The Java type to returnmanagedClass - The Java type to returnbase - The root of the sub-tree at which to begin the search.scope - The scope of the search.