Interface LdapEntryManager<T>

  • Type Parameters:
    T - type of object to manage
    All Known Implementing Classes:
    DefaultLdapEntryManager

    public interface LdapEntryManager<T>
    Interface to manage objects that have been annotated to contain LDAP data.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      AddResponse add​(T object)
      Adds the supplied annotated object to an LDAP.
      DeleteResponse delete​(T object)
      Deletes the supplied annotated object from an LDAP.
      T find​(T object)
      Searches for the supplied annotated object in an LDAP and returns the object mapped with its ldap attribute properties set.
      Result merge​(T object)
      Merges the supplied annotated object in an LDAP.
    • Method Detail

      • find

        T find​(T object)
        throws LdapException
        Searches for the supplied annotated object in an LDAP and returns the object mapped with its ldap attribute properties set.
        Parameters:
        object - to find
        Returns:
        mapped object
        Throws:
        LdapException - if the object cannot be found
      • add

        AddResponse add​(T object)
                 throws LdapException
        Adds the supplied annotated object to an LDAP.
        Parameters:
        object - to add
        Returns:
        LDAP response from the add operation
        Throws:
        LdapException - if the add fails
      • merge

        Result merge​(T object)
              throws LdapException
        Merges the supplied annotated object in an LDAP. See MergeOperation.
        Parameters:
        object - to merge
        Returns:
        LDAP response from the merge operation
        Throws:
        LdapException - if the merge fails
      • delete

        DeleteResponse delete​(T object)
                       throws LdapException
        Deletes the supplied annotated object from an LDAP.
        Parameters:
        object - to delete
        Returns:
        LDAP response from the delete operation
        Throws:
        LdapException - if the delete fails