Class AdDirSyncResponseImpl

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

public class AdDirSyncResponseImpl extends org.apache.directory.api.ldap.model.message.controls.AbstractControl implements AdDirSyncResponse
The class implemnting the AdDirsSync interface
Author:
Apache Directory Project
  • Constructor Details

    • AdDirSyncResponseImpl

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

    • getFlags

      public Set<AdDirSyncResponseFlag> getFlags()
      Get the flags returned by the server. Zero or more of :
      • LDAP_DIRSYNC_OBJECT_SECURITY (0x0001)
      • LDAP_DIRSYNC_ANCESTORS_FIRST_ORDER (0x0800)
      • LDAP_DIRSYNC_PUBLIC_DATA_ONLY (0x2000)(
      • LDAP_DIRSYNC_INCREMENTAL_VALUES (0x7FFFFFFF)
      Specified by:
      getFlags in interface AdDirSyncResponse
      Returns:
      The flags
    • setFlags

      public void setFlags(Set<AdDirSyncResponseFlag> flags)
      Set the flags
      Specified by:
      setFlags in interface AdDirSyncResponse
      Parameters:
      flags - The flags to be set. See EnumSet for how to generate EnumSets.
    • addFlag

      public void addFlag(AdDirSyncResponseFlag flag)
      Add a flag to the collection of flags
      Specified by:
      addFlag in interface AdDirSyncResponse
      Parameters:
      flag - The flag to be added to the current collection of flags.
    • removeFlag

      public void removeFlag(AdDirSyncResponseFlag flag)
      Remove a given flag from the collection of flags
      Specified by:
      removeFlag in interface AdDirSyncResponse
      Parameters:
      flag - The flag to be removed from the current collection of flags.
    • getMaxReturnLength

      public int getMaxReturnLength()
      Get the maximum length of attributes
      Specified by:
      getMaxReturnLength in interface AdDirSyncResponse
      Returns:
      The maximum length of attributes to be returned
    • setMaxReturnLength

      public void setMaxReturnLength(int maxReturnLength)
      Set the maximum length of attributes
      Specified by:
      setMaxReturnLength in interface AdDirSyncResponse
      Parameters:
      maxReturnLength - The maximum length of attributes to be returned
    • getCookie

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

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