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,Control
public class AdDirSyncRequestImpl extends AbstractControl implements AdDirSyncRequest
The class implementing the AdDirsSync interface- Author:
- Apache Directory Project
-
-
Field Summary
-
Fields inherited from interface org.apache.directory.api.ldap.extras.controls.ad.AdDirSyncRequest
OID
-
-
Constructor Summary
Constructors Constructor Description AdDirSyncRequestImpl()Creates an instance of the DirSync control
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object other)byte[]getCookie()intgetMaxAttributeCount()intgetParentsFirst()inthashCode()voidsetCookie(byte[] cookie)voidsetMaxAttributeCount(int maxAttributeCount)voidsetParentsFirst(int parentsFirst)Tell the server that it should send the parents of the children before their children.StringtoString()Return a String representing a Control-
Methods inherited from class org.apache.directory.api.ldap.model.message.controls.AbstractControl
getOid, isCritical, setCritical
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.directory.api.ldap.model.message.Control
getOid, isCritical, setCritical
-
-
-
-
Method Detail
-
getParentsFirst
public int getParentsFirst()
- 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()
- Specified by:
getMaxAttributeCountin interfaceAdDirSyncRequest- Returns:
- The maximum attribute count to be returned
-
setMaxAttributeCount
public void setMaxAttributeCount(int maxAttributeCount)
- Specified by:
setMaxAttributeCountin interfaceAdDirSyncRequest- Parameters:
maxAttributeCount- The maximum attribute count to be returned
-
getCookie
public byte[] getCookie()
- Specified by:
getCookiein interfaceAdDirSyncRequest- Returns:
- The cookie used while processing the successive DirSync operations
-
setCookie
public void setCookie(byte[] 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 classAbstractControl- See Also:
Object.hashCode()
-
equals
public boolean equals(Object other)
- Overrides:
equalsin classAbstractControl- See Also:
Object.equals(Object)
-
toString
public String toString()
Description copied from class:AbstractControlReturn a String representing a Control- Overrides:
toStringin classAbstractControl- See Also:
Object.toString()
-
-