Class SyncInfoValueImpl
java.lang.Object
org.apache.directory.api.ldap.model.message.AbstractMessage
org.apache.directory.api.ldap.model.message.AbstractResponse
org.apache.directory.api.ldap.model.message.AbstractResultResponse
org.apache.directory.api.ldap.model.message.IntermediateResponseImpl
org.apache.directory.api.ldap.extras.intermediate.syncrepl.SyncInfoValueImpl
- All Implemented Interfaces:
SyncInfoValue, org.apache.directory.api.ldap.model.message.IntermediateResponse, org.apache.directory.api.ldap.model.message.Message, org.apache.directory.api.ldap.model.message.Response, org.apache.directory.api.ldap.model.message.ResultResponse
public class SyncInfoValueImpl
extends org.apache.directory.api.ldap.model.message.IntermediateResponseImpl
implements SyncInfoValue
A simple
SyncInfoValue implementation to store response properties.- Version:
- $Rev$, $Date$
- Author:
- Apache Directory Project
-
Field Summary
Fields inherited from class org.apache.directory.api.ldap.model.message.IntermediateResponseImpl
responseName, responseValueFields inherited from class org.apache.directory.api.ldap.model.message.AbstractResultResponse
ldapResultFields inherited from class org.apache.directory.api.ldap.model.message.AbstractMessage
controlsFields inherited from interface SyncInfoValue
OID -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddSyncUUID(byte[] syncUUID) Set the syncUUIDbooleanbyte[]Get the cookieGet the value type.List<byte[]> Get the syncUUIDsinthashCode()booleanTells if the refreshDeletes flag is set totruebooleanTells if the refreshDone flag is set totruevoidsetCookie(byte[] cookie) Set the cookievoidsetRefreshDeletes(boolean refreshDeletes) Set the refreshDeletes flagvoidsetRefreshDone(boolean refreshDone) Set the refreshDone flagvoidSet the the synchronization typevoidsetSyncUUIDs(List<byte[]> syncUUIDs) Set the syncUUIDstoString()Methods inherited from class org.apache.directory.api.ldap.model.message.IntermediateResponseImpl
getResponseName, getResponseValue, setResponseName, setResponseValueMethods inherited from class org.apache.directory.api.ldap.model.message.AbstractResultResponse
getLdapResultMethods inherited from class org.apache.directory.api.ldap.model.message.AbstractMessage
addAllControls, addControl, get, getControl, getControls, getMessageId, getType, hasControl, put, removeControl, setMessageId, toStringMethods inherited from interface org.apache.directory.api.ldap.model.message.IntermediateResponse
getResponseName, getResponseValue, setResponseName, setResponseValueMethods inherited from interface org.apache.directory.api.ldap.model.message.Message
addAllControls, addControl, get, getControl, getControls, getMessageId, getType, hasControl, put, removeControl, setMessageIdMethods inherited from interface org.apache.directory.api.ldap.model.message.ResultResponse
getLdapResult
-
Constructor Details
-
SyncInfoValueImpl
public SyncInfoValueImpl()Creates a new instance of SyncInfoValueImpl.
-
-
Method Details
-
getCookie
public byte[] getCookie()Get the cookie- Specified by:
getCookiein interfaceSyncInfoValue- Returns:
- the cookie
-
setCookie
public void setCookie(byte[] cookie) Set the cookie- Specified by:
setCookiein interfaceSyncInfoValue- Parameters:
cookie- the cookie to set
-
isRefreshDone
public boolean isRefreshDone()Tells if the refreshDone flag is set totrue- Specified by:
isRefreshDonein interfaceSyncInfoValue- Returns:
- the refreshDone
-
setRefreshDone
public void setRefreshDone(boolean refreshDone) Set the refreshDone flag- Specified by:
setRefreshDonein interfaceSyncInfoValue- Parameters:
refreshDone- the refreshDone to set
-
isRefreshDeletes
public boolean isRefreshDeletes()Tells if the refreshDeletes flag is set totrue- Specified by:
isRefreshDeletesin interfaceSyncInfoValue- Returns:
- the refreshDeletes
-
setRefreshDeletes
public void setRefreshDeletes(boolean refreshDeletes) Set the refreshDeletes flag- Specified by:
setRefreshDeletesin interfaceSyncInfoValue- Parameters:
refreshDeletes- the refreshDeletes to set
-
getSyncUUIDs
Get the syncUUIDs- Specified by:
getSyncUUIDsin interfaceSyncInfoValue- Returns:
- the syncUUIDs
-
setSyncUUIDs
Set the syncUUIDs- Specified by:
setSyncUUIDsin interfaceSyncInfoValue- Parameters:
syncUUIDs- the syncUUIDs to set
-
addSyncUUID
public void addSyncUUID(byte[] syncUUID) Set the syncUUID- Specified by:
addSyncUUIDin interfaceSyncInfoValue- Parameters:
syncUUID- the syncUUIDs to set
-
hashCode
public int hashCode()- Overrides:
hashCodein classorg.apache.directory.api.ldap.model.message.IntermediateResponseImpl- See Also:
-
equals
- Overrides:
equalsin classorg.apache.directory.api.ldap.model.message.IntermediateResponseImpl- See Also:
-
toString
- Overrides:
toStringin classorg.apache.directory.api.ldap.model.message.IntermediateResponseImpl- See Also:
-
getSyncInfoValueType
Description copied from interface:SyncInfoValueGet the value type.- Specified by:
getSyncInfoValueTypein interfaceSyncInfoValue- Returns:
- the type : one of newCookie, refreshDelete, refreshPresent or syncIdSet
-
setSyncInfoValueType
Description copied from interface:SyncInfoValueSet the the synchronization type- Specified by:
setSyncInfoValueTypein interfaceSyncInfoValue- Parameters:
type- the synchronization type to set
-