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,Control
public class AdDirSyncResponseImpl extends AbstractControl implements AdDirSyncResponse
The class implemnting the AdDirsSync interface- Author:
- Apache Directory Project
-
-
Field Summary
-
Fields inherited from interface org.apache.directory.api.ldap.extras.controls.ad.AdDirSyncResponse
OID
-
-
Constructor Summary
Constructors Constructor Description AdDirSyncResponseImpl()Creates an instance of the DirSync control
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddFlag(AdDirSyncResponseFlag flag)booleanequals(Object other)byte[]getCookie()Set<AdDirSyncResponseFlag>getFlags()intgetMaxReturnLength()inthashCode()voidremoveFlag(AdDirSyncResponseFlag flag)voidsetCookie(byte[] cookie)voidsetFlags(Set<AdDirSyncResponseFlag> flags)voidsetMaxReturnLength(int maxReturnLength)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
-
getFlags
public Set<AdDirSyncResponseFlag> getFlags()
- Specified by:
getFlagsin interfaceAdDirSyncResponse- Returns:
- 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)
-
setFlags
public void setFlags(Set<AdDirSyncResponseFlag> flags)
- Specified by:
setFlagsin interfaceAdDirSyncResponse- Parameters:
flags- The flags to be set. SeeEnumSetfor how to generate EnumSets.
-
addFlag
public void addFlag(AdDirSyncResponseFlag flag)
- Specified by:
addFlagin interfaceAdDirSyncResponse- Parameters:
flag- The flag to be added to the current collection of flags.
-
removeFlag
public void removeFlag(AdDirSyncResponseFlag flag)
- Specified by:
removeFlagin interfaceAdDirSyncResponse- Parameters:
flag- The flag to be removed from the current collection of flags.
-
getMaxReturnLength
public int getMaxReturnLength()
- Specified by:
getMaxReturnLengthin interfaceAdDirSyncResponse- Returns:
- The maximum length of attributes to be returned
-
setMaxReturnLength
public void setMaxReturnLength(int maxReturnLength)
- Specified by:
setMaxReturnLengthin interfaceAdDirSyncResponse- Parameters:
maxReturnLength- The maximum length of attributes to be returned
-
getCookie
public byte[] getCookie()
- Specified by:
getCookiein interfaceAdDirSyncResponse- Returns:
- The cookie used while processing the successive DirSync operations
-
setCookie
public void setCookie(byte[] 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 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()
-
-