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
-
Field Summary
Fields inherited from interface AdDirSyncResponse
OID -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddFlag(AdDirSyncResponseFlag flag) Add a flag to the collection of flagsbooleanbyte[]Get the cookiegetFlags()Get the flags returned by the server.intGet the maximum length of attributesinthashCode()voidRemove a given flag from the collection of flagsvoidsetCookie(byte[] cookie) Set the cookievoidsetFlags(Set<AdDirSyncResponseFlag> flags) Set the flagsvoidsetMaxReturnLength(int maxReturnLength) Set the maximum length of attributestoString()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
-
AdDirSyncResponseImpl
public AdDirSyncResponseImpl()Creates an instance of the DirSync control
-
-
Method Details
-
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:
getFlagsin interfaceAdDirSyncResponse- Returns:
- The flags
-
setFlags
Set the flags- Specified by:
setFlagsin interfaceAdDirSyncResponse- Parameters:
flags- The flags to be set. SeeEnumSetfor how to generate EnumSets.
-
addFlag
Add a flag to the collection of flags- Specified by:
addFlagin interfaceAdDirSyncResponse- Parameters:
flag- The flag to be added to the current collection of flags.
-
removeFlag
Remove a given flag from the collection of flags- Specified by:
removeFlagin interfaceAdDirSyncResponse- 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:
getMaxReturnLengthin interfaceAdDirSyncResponse- Returns:
- The maximum length of attributes to be returned
-
setMaxReturnLength
public void setMaxReturnLength(int maxReturnLength) Set the maximum length of attributes- Specified by:
setMaxReturnLengthin interfaceAdDirSyncResponse- Parameters:
maxReturnLength- The maximum length of attributes to be returned
-
getCookie
public byte[] getCookie()Get the cookie- Specified by:
getCookiein interfaceAdDirSyncResponse- Returns:
- The cookie used while processing the successive DirSync operations
-
setCookie
public void setCookie(byte[] cookie) Set the cookie- Specified by:
setCookiein interfaceAdDirSyncResponse- 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:
-