|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ldaptive.control.AbstractControl
org.ldaptive.control.EntryChangeNotificationControl
public class EntryChangeNotificationControl
Response control for persistent search. See http://tools.ietf.org/id/draft-ietf-ldapext-psearch-03.txt. Control is defined as:
EntryChangeNotification ::= SEQUENCE {
changeType ENUMERATED {
add (1),
delete (2),
modify (4),
modDN (8)
},
previousDN LDAPDN OPTIONAL, -- modifyDN ops. only
changeNumber INTEGER OPTIONAL -- if supported
}
| Field Summary | |
|---|---|
static String |
OID
OID of this control. |
| Fields inherited from class org.ldaptive.control.AbstractControl |
|---|
logger |
| Constructor Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
void |
decode(byte[] berValue)
Initializes this response control with the supplied BER encoded data. |
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()
|
| Methods inherited from class org.ldaptive.control.AbstractControl |
|---|
equals, getCriticality, getOID |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.ldaptive.control.Control |
|---|
getCriticality, getOID |
| Field Detail |
|---|
public static final String OID
| Constructor Detail |
|---|
public EntryChangeNotificationControl()
public EntryChangeNotificationControl(boolean critical)
critical - whether this control is criticalpublic EntryChangeNotificationControl(PersistentSearchChangeType type)
type - persistent search change type
public EntryChangeNotificationControl(PersistentSearchChangeType type,
boolean critical)
type - persistent search change typecritical - whether this control is critical
public EntryChangeNotificationControl(PersistentSearchChangeType type,
String dn,
long number)
type - persistent search change typedn - previous dnnumber - change number
public EntryChangeNotificationControl(PersistentSearchChangeType type,
String dn,
long number,
boolean critical)
type - persistent search change typedn - previous dnnumber - change numbercritical - whether this control is critical| Method Detail |
|---|
public 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 int hashCode()
hashCode in class AbstractControlpublic String toString()
toString in class Objectpublic void decode(byte[] berValue)
decode in interface ResponseControlberValue - BER encoded response control
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||