Package org.opends.server.controls
Class EntryChangeNotificationControl
- java.lang.Object
-
- org.opends.server.types.Control
-
- org.opends.server.controls.EntryChangeNotificationControl
-
public class EntryChangeNotificationControl extends Control
This class implements the entry change notification control defined in draft-ietf-ldapext-psearch. It may be included in entries returned in response to a persistent search operation.
-
-
Field Summary
Fields Modifier and Type Field Description static ControlDecoder<EntryChangeNotificationControl>DECODERThe ControlDecoder that can be used to decode this control.
-
Constructor Summary
Constructors Constructor Description EntryChangeNotificationControl(boolean isCritical, PersistentSearchChangeType changeType, long changeNumber)Creates a new entry change notification control with the provided information.EntryChangeNotificationControl(boolean isCritical, PersistentSearchChangeType changeType, DN previousDN, long changeNumber)Creates a new entry change notification control with the provided information.EntryChangeNotificationControl(PersistentSearchChangeType changeType, long changeNumber)Creates a new entry change notification control with the provided information.EntryChangeNotificationControl(PersistentSearchChangeType changeType, DN previousDN, long changeNumber)Creates a new entry change notification control with the provided information.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetChangeNumber()Retrieves the change number for this entry change notification control.PersistentSearchChangeTypegetChangeType()Retrieves the change type for this entry change notification control.DNgetPreviousDN()Retrieves the previous DN for this entry change notification control.voidtoString(StringBuilder buffer)Appends a string representation of this control to the provided buffer.voidwriteValue(ASN1Writer writer)Writes this control's value to an ASN.1 writer.-
Methods inherited from class org.opends.server.types.Control
getOID, isCritical, toString, write
-
-
-
-
Field Detail
-
DECODER
public static final ControlDecoder<EntryChangeNotificationControl> DECODER
The ControlDecoder that can be used to decode this control.
-
-
Constructor Detail
-
EntryChangeNotificationControl
public EntryChangeNotificationControl(boolean isCritical, PersistentSearchChangeType changeType, long changeNumber)Creates a new entry change notification control with the provided information.- Parameters:
isCritical- Indicates whether this control should be considered critical in processing the request.changeType- The change type for this change notification control.changeNumber- The change number for the associated change, or a negative value if no change number is available.
-
EntryChangeNotificationControl
public EntryChangeNotificationControl(boolean isCritical, PersistentSearchChangeType changeType, DN previousDN, long changeNumber)Creates a new entry change notification control with the provided information.- Parameters:
isCritical- Indicates whether this control should be considered critical in processing the request.changeType- The change type for this change notification control.previousDN- The DN that the entry had prior to a modify DN operation, ornullif the operation was not a modify DN.changeNumber- The change number for the associated change, or a negative value if no change number is available.
-
EntryChangeNotificationControl
public EntryChangeNotificationControl(PersistentSearchChangeType changeType, long changeNumber)
Creates a new entry change notification control with the provided information.- Parameters:
changeType- The change type for this change notification control.changeNumber- The change number for the associated change, or a negative value if no change number is available.
-
EntryChangeNotificationControl
public EntryChangeNotificationControl(PersistentSearchChangeType changeType, DN previousDN, long changeNumber)
Creates a new entry change notification control with the provided information.- Parameters:
changeType- The change type for this change notification control.previousDN- The DN that the entry had prior to a modify DN operation, ornullif the operation was not a modify DN.changeNumber- The change number for the associated change, or a negative value if no change number is available.
-
-
Method Detail
-
writeValue
public void writeValue(ASN1Writer writer) throws IOException
Description copied from class:ControlWrites this control's value to an ASN.1 writer. The value (if any) must be written as an ASN1OctetString.- Specified by:
writeValuein classControl- Parameters:
writer- The ASN.1 writer to use.- Throws:
IOException- If a problem occurs while writing to the stream.
-
getChangeType
public PersistentSearchChangeType getChangeType()
Retrieves the change type for this entry change notification control.- Returns:
- The change type for this entry change notification control.
-
getPreviousDN
public DN getPreviousDN()
Retrieves the previous DN for this entry change notification control.- Returns:
- The previous DN for this entry change notification control, or
nullif there is none.
-
getChangeNumber
public long getChangeNumber()
Retrieves the change number for this entry change notification control.- Returns:
- The change number for this entry change notification control, or a negative value if no change number is available.
-
toString
public void toString(StringBuilder buffer)
Description copied from class:ControlAppends a string representation of this control to the provided buffer.
-
-