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 Type
    Method
    Description
    default String[]
    Get binary attribute names.
    default String[]
    Get mapped attribute names.
    Get object classes of the ldap entry.
    map(org.ldaptive.LdapEntry ldapEntry)
    Map a ldap entry into a domain object.
    void
    map(org.ldaptive.LdapEntry source, T destination)
     
    default void
    map(T source, org.ldaptive.LdapEntry destination)
     
    org.ldaptive.AttributeModification[]
    mapAndComputeModifications(T source, org.ldaptive.LdapEntry destination)
    Map and compute attribute modifications (see LdapEntry.computeModifications(LdapEntry, LdapEntry)**).
    default Optional<org.ldaptive.ModifyRequest>
    mapAndComputeModifyRequest(T source, org.ldaptive.LdapEntry destination)
    Map and compute modify request.
    mapDn(T domainObject)
     
  • 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

      default String[] getMappedAttributeNames()
      Get mapped attribute names.
      Returns:
      the mapped attribute names
    • getBinaryAttributeNames

      default String[] getBinaryAttributeNames()
      Get binary attribute names.
      Returns:
      the binary attribute names
    • mapDn

      String mapDn(T domainObject)
      Specified by:
      mapDn in interface org.ldaptive.beans.LdapEntryMapper<T>
    • map

      T map(org.ldaptive.LdapEntry ldapEntry)
      Map a ldap entry into a domain object.
      Parameters:
      ldapEntry - the ldap entry
      Returns:
      the domain object
    • map

      void map(org.ldaptive.LdapEntry source, T destination)
      Specified by:
      map in interface org.ldaptive.beans.LdapEntryMapper<T>
    • map

      default void map(T source, org.ldaptive.LdapEntry destination)
      Specified by:
      map in interface org.ldaptive.beans.LdapEntryMapper<T>
    • mapAndComputeModifications

      org.ldaptive.AttributeModification[] mapAndComputeModifications(T source, org.ldaptive.LdapEntry destination)
      Map and compute attribute modifications (see LdapEntry.computeModifications(LdapEntry, LdapEntry)**).
      Parameters:
      source - the source (domain object); required
      destination - 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); required
      destination - the destination (ldap entry); required
      Returns:
      the modify request