public interface EntryChange extends Control
5. Entry Change Notification Control
This control provides additional information about the change the caused
a particular entry to be returned as the result of a persistent search.
The controlType is "2.16.840.1.113730.3.4.7". If the client set the
returnECs boolean to TRUE in the PersistentSearch control, servers MUST
include an EntryChangeNotification control in the Controls portion of
each SearchResultEntry that is returned due to an entry being added,
deleted, or modified.
EntryChangeNotification ::= SEQUENCE
{
changeType ENUMERATED
{
add (1),
delete (2),
modify (4),
modDN (8)
},
previousDN LDAPDN OPTIONAL, -- modifyDN ops. only
changeNumber INTEGER OPTIONAL -- if supported
}
changeType indicates what LDAP operation caused the entry to be
returned.
previousDN is present only for modifyDN operations and gives the Dn of
the entry before it was renamed and/or moved. Servers MUST include this
optional field only when returning change notifications as a result of
modifyDN operations.
changeNumber is the change number [CHANGELOG] assigned by a server for
the change. If a server supports an LDAP Change Log it SHOULD include
this field.
| Modifier and Type | Field and Description |
|---|---|
static String |
OID
The EntryChange control
|
static int |
UNDEFINED_CHANGE_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
long |
getChangeNumber() |
ChangeType |
getChangeType() |
Dn |
getPreviousDn() |
void |
setChangeNumber(long changeNumber) |
void |
setChangeType(ChangeType changeType)
Set the ChangeType
|
void |
setPreviousDn(Dn previousDn) |
getOid, isCritical, setCriticalstatic final int UNDEFINED_CHANGE_NUMBER
static final String OID
ChangeType getChangeType()
void setChangeType(ChangeType changeType)
changeType - Add, Delete; Modify or ModifyDNDn getPreviousDn()
void setPreviousDn(Dn previousDn)
long getChangeNumber()
void setChangeNumber(long changeNumber)
Copyright © 2003–2016 The Apache Software Foundation. All rights reserved.