public class LdapEntryChangeControl
extends netscape.ldap.controls.LDAPEntryChangeControl
implements javax.naming.ldap.Control
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.
Once you retrieve an LdapEntryChangeControl
object from
the server, you can get the following additional information about
the change made to the entry:
LdapPersistSearchControl
,
Serialized FormModifier and Type | Method and Description |
---|---|
int |
getChangeNumber()
Gets the change number, which identifies the record of the change
in the server's change log.
|
int |
getChangeType()
Gets the change type, which identifies the type of change
that occurred.
|
byte[] |
getEncodedValue()
Retrieves the ASN.1 BER encoded value of the LDAP control.
|
java.lang.String |
getPreviousDN()
Gets the previous DN of the entry (if the entry was renamed).
|
setChangeNumber, setChangeType, setPreviousDN, toString
clone, createControl, flattenBER, getID, getValue, isCritical, lookupControlClass, newInstance, register
public int getChangeNumber()
getChangeNumber
in class netscape.ldap.controls.LDAPEntryChangeControl
public int getChangeType()
getChangeType
in class netscape.ldap.controls.LDAPEntryChangeControl
LdapPersistSearchControl.ADD
(a new entry was
added to the directory)
LdapPersistSearchControl.DELETE
(an entry was
removed from the directory)
LdapPersistSearchControl.MODIFY
(an entry was
modified)
LdapPersistSearchControl.MODDN
(an entry was
renamed)
public java.lang.String getPreviousDN()
getPreviousDN
in class netscape.ldap.controls.LDAPEntryChangeControl
public byte[] getEncodedValue()
getEncodedValue
in interface javax.naming.ldap.Control