Class MergeOperation

java.lang.Object
org.ldaptive.ext.MergeOperation

public class MergeOperation extends Object
The merge operation performs the LDAP operations necessary to synchronize the data in an LdapEntry with it's corresponding entry in the LDAP. The following logic is executed:
  • if the entry does not exist in the LDAP, execute an add
  • if the request is for a delete, execute a delete
  • if the entry exists in the LDAP, execute a modify

LdapEntry.computeModifications(LdapEntry, LdapEntry) is used to determine the list of attribute modifications that are necessary to perform the merge. Either MergeRequest.getIncludeAttributes() or MergeRequest.getExcludeAttributes() will be used, but not both.

  • Field Details

    • logger

      private final org.slf4j.Logger logger
      Logger for this class.
    • connectionFactory

      private ConnectionFactory connectionFactory
      Connection factory.
    • throwCondition

      private ResultPredicate throwCondition
      Function to test results.
  • Constructor Details

    • MergeOperation

      public MergeOperation()
      Default constructor.
    • MergeOperation

      public MergeOperation(ConnectionFactory factory)
      Creates a new merge operation.
      Parameters:
      factory - connection factory
  • Method Details