public class EntryChangeNotificationControl extends AbstractControl implements ResponseControl
EntryChangeNotification ::= SEQUENCE {
changeType ENUMERATED {
add (1),
delete (2),
modify (4),
modDN (8)
},
previousDN LDAPDN OPTIONAL, -- modifyDN ops. only
changeNumber INTEGER OPTIONAL -- if supported
}
| Modifier and Type | Class and Description |
|---|---|
private static class |
EntryChangeNotificationControl.ChangeNumberHandler
Parse handler implementation for the change number.
|
private static class |
EntryChangeNotificationControl.ChangeTypeHandler
Parse handler implementation for the change type.
|
private static class |
EntryChangeNotificationControl.PreviousDnHandler
Parse handler implementation for the previous dn.
|
| Modifier and Type | Field and Description |
|---|---|
private long |
changeNumber
change number.
|
private PersistentSearchChangeType |
changeType
change type.
|
private static int |
HASH_CODE_SEED
hash code seed.
|
static String |
OID
OID of this control.
|
private String |
previousDn
previous dn.
|
logger| Constructor and Description |
|---|
EntryChangeNotificationControl()
Default constructor.
|
EntryChangeNotificationControl(boolean critical)
Creates a new entry change notification control.
|
EntryChangeNotificationControl(PersistentSearchChangeType type)
Creates a new entry change notification control.
|
EntryChangeNotificationControl(PersistentSearchChangeType type,
boolean critical)
Creates a new entry change notification control.
|
EntryChangeNotificationControl(PersistentSearchChangeType type,
String dn,
long number)
Creates a new entry change notification control.
|
EntryChangeNotificationControl(PersistentSearchChangeType type,
String dn,
long number,
boolean critical)
Creates a new entry change notification control.
|
| Modifier and Type | Method and Description |
|---|---|
void |
decode(byte[] berValue)
Initializes this response control with the supplied BER encoded data.
|
boolean |
equals(Object o) |
long |
getChangeNumber()
Returns the change number.
|
PersistentSearchChangeType |
getChangeType()
Returns the change type.
|
String |
getPreviousDn()
Returns the previous dn.
|
int |
hashCode()
Returns the hash code for this object.
|
void |
setChangeNumber(long number)
Sets the change number.
|
void |
setChangeType(PersistentSearchChangeType type)
Sets the change type.
|
void |
setPreviousDn(String dn)
Sets the previous dn.
|
String |
toString() |
getCriticality, getOIDclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetCriticality, getOIDpublic static final String OID
private static final int HASH_CODE_SEED
private PersistentSearchChangeType changeType
private String previousDn
private long changeNumber
public EntryChangeNotificationControl()
public EntryChangeNotificationControl(boolean critical)
critical - whether this control is criticalpublic EntryChangeNotificationControl(PersistentSearchChangeType type)
type - persistent search change typepublic EntryChangeNotificationControl(PersistentSearchChangeType type, boolean critical)
type - persistent search change typecritical - whether this control is criticalpublic EntryChangeNotificationControl(PersistentSearchChangeType type, String dn, long number)
type - persistent search change typedn - previous dnnumber - change numberpublic EntryChangeNotificationControl(PersistentSearchChangeType type, String dn, long number, boolean critical)
type - persistent search change typedn - previous dnnumber - change numbercritical - whether this control is criticalpublic PersistentSearchChangeType getChangeType()
public void setChangeType(PersistentSearchChangeType type)
type - change typepublic String getPreviousDn()
public void setPreviousDn(String dn)
dn - previous dnpublic long getChangeNumber()
public void setChangeNumber(long number)
number - change numberpublic boolean equals(Object o)
equals in class AbstractControlpublic int hashCode()
AbstractControlhashCode in class AbstractControlpublic void decode(byte[] berValue)
ResponseControldecode in interface ResponseControlberValue - BER encoded response controlCopyright © 2003-2019 Virginia Tech. All Rights Reserved.