Package com.unboundid.ldap.sdk.controls
Class ContentSyncDoneControl
java.lang.Object
com.unboundid.ldap.sdk.Control
com.unboundid.ldap.sdk.controls.ContentSyncDoneControl
- All Implemented Interfaces:
DecodeableControl,Serializable
@NotMutable
@ThreadSafety(level=COMPLETELY_THREADSAFE)
public final class ContentSyncDoneControl
extends Control
implements DecodeableControl
This class provides an implementation of the LDAP content synchronization
done control as defined in
RFC 4533. Directory
servers may include this control in the search result done message for a
search request containing the content synchronization request control. See
the documentation for the
ContentSyncRequestControl class for more
information about using the content synchronization operation.- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe OID (1.3.6.1.4.1.4203.1.9.1.3) for the sync done control. -
Constructor Summary
ConstructorsConstructorDescriptionContentSyncDoneControl(ASN1OctetString cookie, boolean refreshDeletes) Creates a new content synchronization done control that provides updated information about the state of a content synchronization session.ContentSyncDoneControl(String oid, boolean isCritical, ASN1OctetString value) Creates a new content synchronization done control which is decoded from the provided information from a generic control. -
Method Summary
Modifier and TypeMethodDescriptiondecodeControl(String oid, boolean isCritical, ASN1OctetString value) Creates a new instance of this decodeable control from the provided information.static ContentSyncDoneControlget(LDAPResult result) Extracts a content synchronization done control from the provided result.Retrieves the user-friendly name for this control, if available.Retrieves a cookie providing updated state information for the synchronization session, if available.booleanIndicates whether the synchronization processing has completed a delete phase.voidtoString(StringBuilder buffer) Appends a string representation of this LDAP control to the provided buffer.Methods inherited from class com.unboundid.ldap.sdk.Control
decode, decode, decodeControls, decodeJSONControl, deregisterDecodeableControl, encode, encodeControls, equals, getOID, getValue, hashCode, hasValue, isCritical, readFrom, registerDecodeableControl, registerDecodeableControl, toJSONControl, toString, writeTo
-
Field Details
-
SYNC_DONE_OID
The OID (1.3.6.1.4.1.4203.1.9.1.3) for the sync done control.- See Also:
-
-
Constructor Details
-
ContentSyncDoneControl
Creates a new content synchronization done control that provides updated information about the state of a content synchronization session.- Parameters:
cookie- A cookie with an updated synchronization state. It may benullif no updated state is available.refreshDeletes- Indicates whether the synchronization processing has completed a delete phase.
-
ContentSyncDoneControl
public ContentSyncDoneControl(@NotNull String oid, boolean isCritical, @Nullable ASN1OctetString value) throws LDAPException Creates a new content synchronization done control which is decoded from the provided information from a generic control.- Parameters:
oid- The OID for the control used to create this control.isCritical- Indicates whether the control is marked critical.value- The encoded value for the control.- Throws:
LDAPException- If the provided control cannot be decoded as a content synchronization done control.
-
-
Method Details
-
decodeControl
@NotNull public ContentSyncDoneControl decodeControl(@NotNull String oid, boolean isCritical, @Nullable ASN1OctetString value) throws LDAPException Creates a new instance of this decodeable control from the provided information.- Specified by:
decodeControlin interfaceDecodeableControl- Parameters:
oid- The OID for the control.isCritical- Indicates whether the control should be marked critical.value- The encoded value for the control. This may benullif no value was provided.- Returns:
- The decoded representation of this control.
- Throws:
LDAPException- If the provided information cannot be decoded as a valid instance of this decodeable control.
-
get
Extracts a content synchronization done control from the provided result.- Parameters:
result- The result from which to retrieve the content synchronization done control.- Returns:
- The content synchronization done control contained in the provided
result, or
nullif the result did not contain a content synchronization done control. - Throws:
LDAPException- If a problem is encountered while attempting to decode the content synchronization done control contained in the provided result.
-
getCookie
Retrieves a cookie providing updated state information for the synchronization session, if available.- Returns:
- A cookie providing updated state information for the
synchronization session, or
nullif none was included in the control.
-
refreshDeletes
Indicates whether the synchronization processing has completed a delete phase.- Returns:
trueif the synchronization processing has completed a delete phase, orfalseif not.
-
getControlName
Retrieves the user-friendly name for this control, if available. If no user-friendly name has been defined, then the OID will be returned.- Overrides:
getControlNamein classControl- Returns:
- The user-friendly name for this control, or the OID if no user-friendly name is available.
-
toString
Appends a string representation of this LDAP control to the provided buffer.
-