Class OdmManagerImpl
java.lang.Object
org.springframework.ldap.odm.core.impl.OdmManagerImpl
- All Implemented Interfaces:
OdmManager
Deprecated.
This functionality is automatically available in LdapTemplate as of version 2.0
An implementation of
OdmManager which
uses ConverterManager to
convert between Java and LDAP representations of attribute values.-
Constructor Summary
ConstructorsConstructorDescriptionOdmManagerImpl(org.springframework.ldap.odm.typeconversion.ConverterManager converterManager, org.springframework.ldap.core.ContextSource contextSource) Deprecated.OdmManagerImpl(org.springframework.ldap.odm.typeconversion.ConverterManager converterManager, org.springframework.ldap.core.ContextSource contextSource, Set<Class<?>> managedClasses) Deprecated.OdmManagerImpl(org.springframework.ldap.odm.typeconversion.ConverterManager converterManager, org.springframework.ldap.core.LdapOperations ldapOperations, Set<Class<?>> managedClasses) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddManagedClass(Class<?> managedClass) Deprecated.Adds anorg.springframework.ldap.odm.annotationsannotated class to the set managed by this OdmManager.voidDeprecated.Create the given entry in the LDAP directory.voidDeprecated.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> TDeprecated.Read a named entry from the LDAP directory.<T> List<T>search(Class<T> managedClass, Name base, String filter, SearchControls scope) Deprecated.Search for entries in the LDAP directory.<T> List<T>Deprecated.Search for entries in the LDAP directory.voidDeprecated.Update the given entry in the LDAP directory.
-
Constructor Details
-
OdmManagerImpl
public OdmManagerImpl(org.springframework.ldap.odm.typeconversion.ConverterManager converterManager, org.springframework.ldap.core.LdapOperations ldapOperations, Set<Class<?>> managedClasses) Deprecated. -
OdmManagerImpl
public OdmManagerImpl(org.springframework.ldap.odm.typeconversion.ConverterManager converterManager, org.springframework.ldap.core.ContextSource contextSource, Set<Class<?>> managedClasses) Deprecated. -
OdmManagerImpl
public OdmManagerImpl(org.springframework.ldap.odm.typeconversion.ConverterManager converterManager, org.springframework.ldap.core.ContextSource contextSource) Deprecated.
-
-
Method Details
-
addManagedClass
Deprecated.Adds anorg.springframework.ldap.odm.annotationsannotated class to the set managed by this OdmManager.- Parameters:
managedClass- The class to add to the managed set.
-
read
Deprecated.Description copied from interface:OdmManagerRead a named entry from the LDAP directory.- Specified by:
readin interfaceOdmManager- Type Parameters:
T- The Java type to return- Parameters:
clazz- The Java type to returndn- The distinguished name of the entry to read from the LDAP directory.- Returns:
- The entry as read from the directory
-
create
Deprecated.Description copied from interface:OdmManagerCreate the given entry in the LDAP directory.- Specified by:
createin interfaceOdmManager- Parameters:
entry- The entry to be create, it must not already exist in the directory.
-
update
Deprecated.Description copied from interface:OdmManagerUpdate the given entry in the LDAP directory.- Specified by:
updatein interfaceOdmManager- Parameters:
entry- The entry to update, it must already exist in the directory.
-
delete
Deprecated.Description copied from interface:OdmManagerDelete an entry from the LDAP directory.- Specified by:
deletein interfaceOdmManager- Parameters:
entry- The entry to delete, it must already exist in the directory.
-
search
Deprecated.Description copied from interface:OdmManagerSearch for entries in the LDAP directory.Only those entries that both match the given search filter and are represented by the given Java class are returned
- Specified by:
searchin interfaceOdmManager- Type Parameters:
T- The Java type to return- Parameters:
managedClass- 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.- Returns:
- All matching entries.
- See Also:
-
search
Deprecated.Description copied from interface:OdmManagerSearch for entries in the LDAP directory.Only those entries that both match the query search filter and are represented by the given Java class are returned.
- Specified by:
searchin interfaceOdmManager- Type Parameters:
T- The Java type to return- Parameters:
clazz- The Java type to returnquery- the LDAP query specification- Returns:
- All matching entries.
- See Also:
-
LdapQueryBuilder
-
findAll
Deprecated.Description copied from interface:OdmManagerFind all entries in the LDAP directory of a given type.- Specified by:
findAllin interfaceOdmManager- Type Parameters:
T- The Java type to return- Parameters:
managedClass- The Java type to returnbase- The root of the sub-tree at which to begin the search.scope- The scope of the search.- Returns:
- All entries that are of the type represented by the given Java class
-