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
    Modifier and Type
    Field
    Description
    static final String
    This control OID
  • Method Summary

    Modifier and Type
    Method
    Description
    byte[]
    Get the dialogue cookie
    int
    Get the maximum attribute count
    int
    Tells if the parents should be returned first
    void
    setCookie(byte[] cookie)
    Set the dialogue cookie
    void
    setMaxAttributeCount(int maxAttributeCount)
    Set the maximum attribute count
    void
    setParentsFirst(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

  • 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.