Class SyncStateValueImpl
java.lang.Object
org.apache.directory.api.ldap.model.message.controls.AbstractControl
org.apache.directory.api.ldap.extras.controls.syncrepl.syncState.SyncStateValueImpl
- All Implemented Interfaces:
SyncStateValue, org.apache.directory.api.ldap.model.message.Control
public class SyncStateValueImpl
extends org.apache.directory.api.ldap.model.message.controls.AbstractControl
implements SyncStateValue
A simple SyncStateValue Control implementation.
- Version:
- $Rev$, $Date$
- Author:
- Apache Directory Project
-
Field Summary
Fields inherited from interface SyncStateValue
OID -
Constructor Summary
ConstructorsConstructorDescriptionSyncStateValueImpl Creates a new instance of SyncDoneValueImpl.SyncStateValueImpl(boolean isCritical) Creates a new instance of SyncStateValueImpl. -
Method Summary
Modifier and TypeMethodDescriptionbooleanbyte[]get the cookiebyte[]Get the entryUUIDGet the the syncState's typeinthashCode()voidsetCookie(byte[] cookie) Set the cookievoidsetEntryUUID(byte[] entryUUID) Set the entryUUIDvoidsetSyncStateType(SyncStateTypeEnum syncStateType) set the syncState's typetoString()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
-
SyncStateValueImpl
public SyncStateValueImpl()SyncStateValueImpl Creates a new instance of SyncDoneValueImpl. -
SyncStateValueImpl
public SyncStateValueImpl(boolean isCritical) Creates a new instance of SyncStateValueImpl.- Parameters:
isCritical- The critical flag
-
-
Method Details
-
getCookie
public byte[] getCookie()get the cookie- Specified by:
getCookiein interfaceSyncStateValue- Returns:
- The cookie
-
setCookie
public void setCookie(byte[] cookie) Set the cookie- Specified by:
setCookiein interfaceSyncStateValue- Parameters:
cookie- The cookie to set
-
getSyncStateType
Get the the syncState's type- Specified by:
getSyncStateTypein interfaceSyncStateValue- Returns:
- The syncState's type
-
setSyncStateType
set the syncState's type- Specified by:
setSyncStateTypein interfaceSyncStateValue- Parameters:
syncStateType- the syncState's type
-
getEntryUUID
public byte[] getEntryUUID()Get the entryUUID- Specified by:
getEntryUUIDin interfaceSyncStateValue- Returns:
- the entryUUID
-
setEntryUUID
public void setEntryUUID(byte[] entryUUID) Set the entryUUID- Specified by:
setEntryUUIDin interfaceSyncStateValue- Parameters:
entryUUID- The entryUUID
-
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:
-