Class LDAPEntryChangeControl

java.lang.Object
netscape.ldap.LDAPControl
netscape.ldap.controls.LDAPEntryChangeControl
All Implemented Interfaces:
Serializable, Cloneable

public class LDAPEntryChangeControl extends LDAPControl
Represents an LDAP v3 server control that specifies information about a change to an entry in the directory. (The OID for this control is 2.16.840.1.113730.3.4.7.) You need to use this control in conjunction with a "persistent search" control (represented by LDAPPersistentSearchControl object.

To use persistent searching for change notification, you create a "persistent search" control that specifies the types of changes that you want to track. When an entry is changed, the server sends that entry back to your client and may include an "entry change notification" control that specifies additional information about the change.

Typically, you use the getResponseControls method of the LDAPConnection object to get any LDAPEntryChangeControl objects returned by the server.

Once you retrieve an LDAPEntryChangeControl object from the server, you can get the following additional information about the change made to the entry:

  • The type of change made (add, modify, delete, or modify DN)
  • The change number identifying the record of the change in the change log (if the server supports change logs)
  • If the entry was renamed, the old DN of the entry

See Also: