Package org.ldaptive.beans
Class AbstractLdapEntryMapper<T>
java.lang.Object
org.ldaptive.beans.AbstractLdapEntryMapper<T>
- Type Parameters:
T
- type of object to map
- All Implemented Interfaces:
LdapEntryMapper<T>
- Direct Known Subclasses:
DefaultLdapEntryMapper
,SpringLdapEntryMapper
Base implementation of an ldap entry mapper. Uses a
ClassDescriptor
for decoding and encoding of objects.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract ClassDescriptor
getClassDescriptor
(T object) Returns the class descriptor.void
Injects data from the supplied ldap entry into the supplied destination object.Injects data from the supplied source object into a new instance of ldap entry.void
Injects data from the supplied source object into the supplied ldap entry.Returns the LDAP DN for the supplied object.
-
Field Details
-
logger
protected final org.slf4j.Logger loggerLogger for this class.
-
-
Constructor Details
-
AbstractLdapEntryMapper
public AbstractLdapEntryMapper()
-
-
Method Details
-
getClassDescriptor
Returns the class descriptor.- Parameters:
object
- to return the class descriptor for- Returns:
- class descriptor
-
mapDn
Description copied from interface:LdapEntryMapper
Returns the LDAP DN for the supplied object.- Specified by:
mapDn
in interfaceLdapEntryMapper<T>
- Parameters:
object
- to retrieve the DN from- Returns:
- LDAP DN
-
map
Injects data from the supplied source object into a new instance of ldap entry.- Parameters:
source
- to read from- Returns:
- ldap entry
-
map
Description copied from interface:LdapEntryMapper
Injects data from the supplied source object into the supplied ldap entry.- Specified by:
map
in interfaceLdapEntryMapper<T>
- Parameters:
source
- to read fromdest
- to write to
-
map
Description copied from interface:LdapEntryMapper
Injects data from the supplied ldap entry into the supplied destination object.- Specified by:
map
in interfaceLdapEntryMapper<T>
- Parameters:
source
- to read fromdest
- to write to
-