Interface AddResultHandler


public interface AddResultHandler
Handler for add operation results.
Author:
Chris Burdess
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Called when the add operation completes.
  • Method Details

    • handleAddResult

      void handleAddResult(LDAPResult result, LDAPSession session)
      Called when the add operation completes.

      Check result.isSuccess() to determine if the entry was added successfully.

      Common failure reasons include:

      • ENTRY_ALREADY_EXISTS - DN already exists
      • NO_SUCH_OBJECT - parent entry does not exist
      • OBJECT_CLASS_VIOLATION - missing required attributes
      Parameters:
      result - the operation result
      session - operations for further directory access