Package org.bremersee.ldaptive
Interface LdaptiveEntryMapper<T>
- Type Parameters:
T- the type of the domain object
- All Superinterfaces:
org.ldaptive.beans.LdapEntryMapper<T>
- All Known Implementing Classes:
LdaptiveEntryImmutableMapper
public interface LdaptiveEntryMapper<T>
extends org.ldaptive.beans.LdapEntryMapper<T>
The ldap entry mapper.
- Author:
- Christian Bremer
-
Method Summary
Modifier and TypeMethodDescriptiondefault String[]Get binary attribute names.default String[]Get mapped attribute names.String[]Get object classes of the ldap entry.map(org.ldaptive.LdapEntry ldapEntry) Map a ldap entry into a domain object.voiddefault voidorg.ldaptive.AttributeModification[]mapAndComputeModifications(T source, org.ldaptive.LdapEntry destination) Map and compute attribute modifications (seeLdapEntry.computeModifications(LdapEntry, LdapEntry)**).default Optional<org.ldaptive.ModifyRequest> mapAndComputeModifyRequest(T source, org.ldaptive.LdapEntry destination) Map and compute modify request.
-
Method Details
-
getObjectClasses
String[] getObjectClasses()Get object classes of the ldap entry. The object classes are only required, if a new ldap entry should be persisted.- Returns:
- the object classes of the ldap entry
-
getMappedAttributeNames
Get mapped attribute names.- Returns:
- the mapped attribute names
-
getBinaryAttributeNames
Get binary attribute names.- Returns:
- the binary attribute names
-
mapDn
- Specified by:
mapDnin interfaceorg.ldaptive.beans.LdapEntryMapper<T>
-
map
Map a ldap entry into a domain object.- Parameters:
ldapEntry- the ldap entry- Returns:
- the domain object
-
map
- Specified by:
mapin interfaceorg.ldaptive.beans.LdapEntryMapper<T>
-
map
- Specified by:
mapin interfaceorg.ldaptive.beans.LdapEntryMapper<T>
-
mapAndComputeModifications
org.ldaptive.AttributeModification[] mapAndComputeModifications(T source, org.ldaptive.LdapEntry destination) Map and compute attribute modifications (seeLdapEntry.computeModifications(LdapEntry, LdapEntry)**).- Parameters:
source- the source (domain object); requireddestination- the destination (ldap entry); required- Returns:
- the attribute modifications
-
mapAndComputeModifyRequest
default Optional<org.ldaptive.ModifyRequest> mapAndComputeModifyRequest(T source, org.ldaptive.LdapEntry destination) Map and compute modify request.- Parameters:
source- the source (domain object); requireddestination- the destination (ldap entry); required- Returns:
- the modify request
-