Class AddEntry

All Implemented Interfaces:
Comparable<GenericEntry>, Iterable<Attribute>

public class AddEntry extends ChangeEntry
An AddEntry is used to store the contents of an entry to add to the directory. It can be generated empty and then filled, or may be loaded from an 'Add' LDIF change-record. Once constructed, it may be applied to a directory, or saved to an LDIF file. Note that only the addAttribute() call is supported, as only add-attributes may be contained within an AddEntry. It cannot include attribute replace or delete operations -- use a ModifyEntry for that.
Author:
jp
  • Constructor Details

    • AddEntry

      public AddEntry(DN dn)
      Create a new blank AddEntry using the specified DN
      Parameters:
      dn - the distinguished name (must not be null)
      Throws:
      NullPointerException - if dn is null
      NativeLibraryException - if an unrecoverable error was detected by the native library
    • AddEntry

      public AddEntry(Entry entry)
      Create an AddEntry from an Entry.

      Note that any Attributes inside entry which contain no values are treated as if they were not present at all (i.e. they will not appear in the constructed object).

      Parameters:
      entry - the entry from which this object should be created.
      Throws:
      NullPointerException - if entry is null
      NativeLibraryException - if an unrecoverable error was detected by the native library
  • Method Details