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 -
Method Summary
Modifier and TypeMethodDescriptionbooleanbyte[]Get the dialogue cookieintGet the maximum attribute countintTells if the parents should be returned firstinthashCode()voidsetCookie(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.toString()Methods inherited from class org.apache.directory.api.ldap.model.message.controls.AbstractControl
getOid, isCritical, setCriticalMethods 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:
getParentsFirstin interfaceAdDirSyncRequest- 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:
setParentsFirstin interfaceAdDirSyncRequest- Parameters:
parentsFirst- When set to 1, will return the parents before children
-
getMaxAttributeCount
public int getMaxAttributeCount()Get the maximum attribute count- Specified by:
getMaxAttributeCountin interfaceAdDirSyncRequest- Returns:
- The maximum attribute count to be returned
-
setMaxAttributeCount
public void setMaxAttributeCount(int maxAttributeCount) Set the maximum attribute count- Specified by:
setMaxAttributeCountin interfaceAdDirSyncRequest- Parameters:
maxAttributeCount- The maximum attribute count to be returned
-
getCookie
public byte[] getCookie()Get the dialogue cookie- Specified by:
getCookiein interfaceAdDirSyncRequest- Returns:
- The cookie used while processing the successive DirSync operations
-
setCookie
public void setCookie(byte[] cookie) Set the dialogue cookie- Specified by:
setCookiein interfaceAdDirSyncRequest- 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:
hashCodein classorg.apache.directory.api.ldap.model.message.controls.AbstractControl- See Also:
-
equals
- Overrides:
equalsin classorg.apache.directory.api.ldap.model.message.controls.AbstractControl- See Also:
-
toString
- Overrides:
toStringin classorg.apache.directory.api.ldap.model.message.controls.AbstractControl- See Also:
-