Class SyncDoneValueImpl
java.lang.Object
org.apache.directory.api.ldap.model.message.controls.AbstractControl
org.apache.directory.api.ldap.extras.controls.syncrepl.syncDone.SyncDoneValueImpl
- All Implemented Interfaces:
SyncDoneValue, org.apache.directory.api.ldap.model.message.Control
public class SyncDoneValueImpl
extends org.apache.directory.api.ldap.model.message.controls.AbstractControl
implements SyncDoneValue
A simple
SyncDoneValue implementation to store control properties.- Version:
- $Rev$, $Date$
- Author:
- Apache Directory Project
-
Field Summary
Fields inherited from interface SyncDoneValue
OID -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new instance of SyncDoneValueImpl.SyncDoneValueImpl(boolean isCritical) Creates a new instance of SyncDoneValueImpl. -
Method Summary
Modifier and TypeMethodDescriptionbooleanbyte[]get the cookieinthashCode()booleanTells if the refreshDeletes flag is set totruevoidsetCookie(byte[] cookie) Set the cookievoidsetRefreshDeletes(boolean refreshDeletes) Set the refreshDeletes flagtoString()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
-
SyncDoneValueImpl
public SyncDoneValueImpl()Creates a new instance of SyncDoneValueImpl. -
SyncDoneValueImpl
public SyncDoneValueImpl(boolean isCritical) Creates a new instance of SyncDoneValueImpl.- Parameters:
isCritical- The critical flag
-
-
Method Details
-
getCookie
public byte[] getCookie()get the cookie- Specified by:
getCookiein interfaceSyncDoneValue- Returns:
- the cookie
-
setCookie
public void setCookie(byte[] cookie) Set the cookie- Specified by:
setCookiein interfaceSyncDoneValue- Parameters:
cookie- cookie to be set
-
isRefreshDeletes
public boolean isRefreshDeletes()Tells if the refreshDeletes flag is set totrue- Specified by:
isRefreshDeletesin interfaceSyncDoneValue- Returns:
true, if refreshDeletes flag is set,falseotherwise
-
setRefreshDeletes
public void setRefreshDeletes(boolean refreshDeletes) Set the refreshDeletes flag- Specified by:
setRefreshDeletesin interfaceSyncDoneValue- Parameters:
refreshDeletes- set the refreshDeletes flag
-
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:
-