Interface AdDirSyncRequest
- All Superinterfaces:
org.apache.directory.api.ldap.model.message.Control
- All Known Implementing Classes:
AdDirSyncRequestImpl
public interface AdDirSyncRequest
extends org.apache.directory.api.ldap.model.message.Control
The DirSync request control, as described in http://tools.ietf.org/html/draft-armijo-ldap-dirsync-00.
Here is the ASN/1 description of the SearchRequest control :
Repl Control ::= SEQUENCE {
controlType 1.2.840.113556.1.4.841
controlValue replControlValue
criticality TRUE
}
the control value is :
Client side :
realReplControlValue ::= SEQUENCE {
parentsFirst integer
maxAttributeCount integer
cookie OCTET STRING
}
- Author:
- Apache Directory Project
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionbyte[]Get the dialogue cookieintGet the maximum attribute countintTells if the parents should be returned firstvoidsetCookie(byte[] cookie) Set the dialogue cookievoidsetMaxAttributeCount(int maxAttributeCount) Set the maximum attribute countvoidsetParentsFirst(int parentsFirst) Tell the server that it should send the parents of the children before their children.Methods inherited from interface org.apache.directory.api.ldap.model.message.Control
getOid, isCritical, setCritical
-
Field Details
-
OID
-
-
Method Details
-
getParentsFirst
int getParentsFirst()Tells if the parents should be returned first- Returns:
- 1 if the parents of the children comes before their children
-
setParentsFirst
void setParentsFirst(int parentsFirst) Tell the server that it should send the parents of the children before their children. NOTE: it should have been a boolean, it's an integer instead.- Parameters:
parentsFirst- When set to 1, will return the parents before children
-
getMaxAttributeCount
int getMaxAttributeCount()Get the maximum attribute count- Returns:
- The maximum attribute count to be returned
-
setMaxAttributeCount
void setMaxAttributeCount(int maxAttributeCount) Set the maximum attribute count- Parameters:
maxAttributeCount- The maximum attribute count to be returned
-
getCookie
byte[] getCookie()Get the dialogue cookie- Returns:
- The cookie used while processing the successive DirSync operations
-
setCookie
void setCookie(byte[] cookie) Set the dialogue cookie- Parameters:
cookie- The cookie to send to the server. It's the value found in the response control. Should be null for the first control.
-