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 boolean
equals(Object other)
byte[]
getCookie()
int
getMaxAttributeCount()
int
getParentsFirst()
int
hashCode()
void
setCookie(byte[] cookie)
void
setMaxAttributeCount(int maxAttributeCount)
void
setParentsFirst(int parentsFirst)
Tell the server that it should send the parents of the children before their children.String
toString()
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 interface org.apache.directory.api.ldap.model.message.Control
getOid, isCritical, setCritical
-
-
-
-
Constructor Detail
-
AdDirSyncRequestImpl
public AdDirSyncRequestImpl()
Creates an instance of the DirSync control
-
-
Method Detail
-
getParentsFirst
public int getParentsFirst()
- Specified by:
getParentsFirst
in 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:
setParentsFirst
in interfaceAdDirSyncRequest
- Parameters:
parentsFirst
- When set to 1, will return the parents before children
-
getMaxAttributeCount
public int getMaxAttributeCount()
- Specified by:
getMaxAttributeCount
in interfaceAdDirSyncRequest
- Returns:
- The maximum attribute count to be returned
-
setMaxAttributeCount
public void setMaxAttributeCount(int maxAttributeCount)
- Specified by:
setMaxAttributeCount
in interfaceAdDirSyncRequest
- Parameters:
maxAttributeCount
- The maximum attribute count to be returned
-
getCookie
public byte[] getCookie()
- Specified by:
getCookie
in interfaceAdDirSyncRequest
- Returns:
- The cookie used while processing the successive DirSync operations
-
setCookie
public void setCookie(byte[] cookie)
- Specified by:
setCookie
in 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:
hashCode
in classAbstractControl
- See Also:
Object.hashCode()
-
equals
public boolean equals(Object other)
- Overrides:
equals
in classAbstractControl
- See Also:
Object.equals(Object)
-
toString
public String toString()
Description copied from class:AbstractControl
Return a String representing a Control- Overrides:
toString
in classAbstractControl
- See Also:
Object.toString()
-
-