|
Spring LDAP Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.ldap.odm.core.impl.OdmManagerImpl
public final class OdmManagerImpl
An implementation of OdmManager
which
uses ConverterManager
to
convert between Java and LDAP representations of attribute values.
Constructor Summary | |
---|---|
OdmManagerImpl(ConverterManager converterManager,
ContextSource contextSource)
|
|
OdmManagerImpl(ConverterManager converterManager,
ContextSource contextSource,
Set<Class<?>> managedClasses)
|
Method Summary | ||
---|---|---|
void |
addManagedClass(Class<?> managedClass)
Adds an org.springframework.ldap.odm.annotations annotated class to the set
managed by this OdmManager. |
|
void |
create(Object entry)
Create the given entry in the LDAP directory. |
|
void |
delete(Object entry)
Delete an entry from the LDAP directory. |
|
|
findAll(Class<T> managedClass,
Name base,
SearchControls scope)
Find all entries in the LDAP directory of a given type. |
|
|
read(Class<T> clazz,
Name dn)
Read a named entry from the LDAP directory. |
|
|
search(Class<T> managedClass,
Name base,
String filter,
SearchControls scope)
Search for entries in the LDAP directory. |
|
void |
update(Object entry)
Update the given entry in the LDAP directory. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OdmManagerImpl(ConverterManager converterManager, ContextSource contextSource, Set<Class<?>> managedClasses)
public OdmManagerImpl(ConverterManager converterManager, ContextSource contextSource)
Method Detail |
---|
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)
OdmManager
read
in interface OdmManager
T
- 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)
OdmManager
create
in interface OdmManager
entry
- The entry to be create, it must not already exist in the directory.public void update(Object entry)
OdmManager
update
in interface OdmManager
entry
- The entry to update, it must already exist in the directory.public void delete(Object entry)
OdmManager
delete
in interface OdmManager
entry
- 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)
OdmManager
Only those entries that both match the given search filter and are represented by the given Java class are returned
search
in interface OdmManager
T
- 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> findAll(Class<T> managedClass, Name base, SearchControls scope)
OdmManager
findAll
in interface OdmManager
T
- 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.
|
Spring LDAP Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |