|
spring-ldap-core | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.springframework.ldap.odm.core.impl.DefaultObjectDirectoryMapper
public class DefaultObjectDirectoryMapper
Default implementation of ObjectDirectoryMapper. Unless you need to explicitly configure
converters there is typically no reason to explicitly consider yourself with this class.
| Constructor Summary | |
|---|---|
DefaultObjectDirectoryMapper()
|
|
| Method Summary | ||
|---|---|---|
String |
attributeFor(Class<?> clazz,
String fieldName)
Get the attribute corresponding to the specified field name. |
|
Filter |
filterFor(Class<?> clazz,
Filter baseFilter)
Use the specified search filter and return a new one that only applies to entries of the specified class. |
|
Name |
getCalculatedId(Object entry)
|
|
Name |
getId(Object entry)
Get the distinguished name for the specified object. |
|
void |
manageClass(Class<?> clazz)
Check if the specified class is already managed by this instance; if not, check the metadata and add the class to the managed classes. |
|
|
mapFromLdapDataEntry(LdapDataEntry context,
Class<T> clazz)
Used to convert from the JNDI LDAP representation of an Entry to the Java representation when reading from LDAP. |
|
void |
mapToLdapDataEntry(Object entry,
LdapDataEntry context)
Used to convert from Java representation of an Ldap Entry when writing to the Ldap directory |
|
void |
setConverterManager(ConverterManager converterManager)
|
|
void |
setId(Object entry,
Name id)
Set the distinguished name for the specified object. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultObjectDirectoryMapper()
| Method Detail |
|---|
public void setConverterManager(ConverterManager converterManager)
public void manageClass(Class<?> clazz)
ObjectDirectoryMapper
manageClass in interface ObjectDirectoryMapperclazz - the class to manage.
public void mapToLdapDataEntry(Object entry,
LdapDataEntry context)
ObjectDirectoryMapper
mapToLdapDataEntry in interface ObjectDirectoryMapperentry - - The entry to convert.context - - The LDAP context to store the converted entry
public <T> T mapFromLdapDataEntry(LdapDataEntry context,
Class<T> clazz)
ObjectDirectoryMapper
mapFromLdapDataEntry in interface ObjectDirectoryMapperpublic Name getId(Object entry)
ObjectDirectoryMapper
getId in interface ObjectDirectoryMapperentry - the entry to get distinguished name for.
public void setId(Object entry,
Name id)
ObjectDirectoryMapper
setId in interface ObjectDirectoryMapperentry - the entry to set the name onid - the name to setpublic Name getCalculatedId(Object entry)
getCalculatedId in interface ObjectDirectoryMapper
public Filter filterFor(Class<?> clazz,
Filter baseFilter)
ObjectDirectoryMapper
filterFor in interface ObjectDirectoryMapperclazz - the class.baseFilter - the filter we want to use.
public String attributeFor(Class<?> clazz,
String fieldName)
ObjectDirectoryMapper
attributeFor in interface ObjectDirectoryMapperclazz - the clazz.fieldName - the field name.
|
spring-ldap-core | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||