Class AdDirSyncRequestImpl

java.lang.Object
org.apache.directory.api.ldap.model.message.controls.AbstractControl
org.apache.directory.api.ldap.extras.controls.ad.AdDirSyncRequestImpl
All Implemented Interfaces:
AdDirSyncRequest, org.apache.directory.api.ldap.model.message.Control

public class AdDirSyncRequestImpl extends org.apache.directory.api.ldap.model.message.controls.AbstractControl implements AdDirSyncRequest
The class implementing the AdDirsSync interface
Author:
Apache Directory Project
  • Field Summary

    Fields inherited from interface AdDirSyncRequest

    OID
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates an instance of the DirSync control
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    equals(Object other)
     
    byte[]
    Get the dialogue cookie
    int
    Get the maximum attribute count
    int
    Tells if the parents should be returned first
    int
     
    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 class org.apache.directory.api.ldap.model.message.controls.AbstractControl

    getOid, isCritical, setCritical

    Methods inherited from class Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface org.apache.directory.api.ldap.model.message.Control

    getOid, isCritical, setCritical
  • Constructor Details

    • AdDirSyncRequestImpl

      public AdDirSyncRequestImpl()
      Creates an instance of the DirSync control
  • Method Details

    • getParentsFirst

      public int getParentsFirst()
      Tells if the parents should be returned first
      Specified by:
      getParentsFirst in interface AdDirSyncRequest
      Returns:
      1 if the parents of the children comes before their children
    • setParentsFirst

      public 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.
      Specified by:
      setParentsFirst in interface AdDirSyncRequest
      Parameters:
      parentsFirst - When set to 1, will return the parents before children
    • getMaxAttributeCount

      public int getMaxAttributeCount()
      Get the maximum attribute count
      Specified by:
      getMaxAttributeCount in interface AdDirSyncRequest
      Returns:
      The maximum attribute count to be returned
    • setMaxAttributeCount

      public void setMaxAttributeCount(int maxAttributeCount)
      Set the maximum attribute count
      Specified by:
      setMaxAttributeCount in interface AdDirSyncRequest
      Parameters:
      maxAttributeCount - The maximum attribute count to be returned
    • getCookie

      public byte[] getCookie()
      Get the dialogue cookie
      Specified by:
      getCookie in interface AdDirSyncRequest
      Returns:
      The cookie used while processing the successive DirSync operations
    • setCookie

      public void setCookie(byte[] cookie)
      Set the dialogue cookie
      Specified by:
      setCookie in interface AdDirSyncRequest
      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.
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class org.apache.directory.api.ldap.model.message.controls.AbstractControl
      See Also:
    • equals

      public boolean equals(Object other)
      Overrides:
      equals in class org.apache.directory.api.ldap.model.message.controls.AbstractControl
      See Also:
    • toString

      public String toString()
      Overrides:
      toString in class org.apache.directory.api.ldap.model.message.controls.AbstractControl
      See Also: