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
,IntermediateResponse
,Message
,Response
,ResultResponse
public class SyncInfoValueImpl extends IntermediateResponseImpl implements SyncInfoValue
A simpleSyncInfoValue
implementation to store response properties.- Version:
- $Rev$, $Date$
- Author:
- Apache Directory Project
-
-
Field Summary
-
Fields inherited from interface org.apache.directory.api.ldap.extras.intermediate.syncrepl.SyncInfoValue
OID
-
-
Constructor Summary
Constructors Constructor Description SyncInfoValueImpl()
Creates a new instance of SyncInfoValueImpl.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addSyncUUID(byte[] syncUUID)
boolean
equals(Object o)
Checks to see if an object equals this IntemediateResponse.byte[]
getCookie()
SynchronizationInfoEnum
getSyncInfoValueType()
Get the value type.List<byte[]>
getSyncUUIDs()
int
hashCode()
boolean
isRefreshDeletes()
boolean
isRefreshDone()
void
setCookie(byte[] cookie)
void
setRefreshDeletes(boolean refreshDeletes)
void
setRefreshDone(boolean refreshDone)
void
setSyncInfoValueType(SynchronizationInfoEnum type)
void
setSyncUUIDs(List<byte[]> syncUUIDs)
String
toString()
Get a String representation of an IntermediateResponse-
Methods inherited from class org.apache.directory.api.ldap.model.message.IntermediateResponseImpl
getResponseName, getResponseValue, setResponseName, setResponseValue
-
Methods inherited from class org.apache.directory.api.ldap.model.message.AbstractResultResponse
getLdapResult
-
Methods inherited from class org.apache.directory.api.ldap.model.message.AbstractMessage
addAllControls, addControl, get, getControl, getControls, getMessageId, getType, hasControl, put, removeControl, setMessageId, toString
-
Methods inherited from interface org.apache.directory.api.ldap.model.message.IntermediateResponse
getResponseName, getResponseValue, setResponseName, setResponseValue
-
Methods inherited from interface org.apache.directory.api.ldap.model.message.Message
addAllControls, addControl, get, getControl, getControls, getMessageId, getType, hasControl, put, removeControl, setMessageId
-
Methods inherited from interface org.apache.directory.api.ldap.model.message.ResultResponse
getLdapResult
-
-
-
-
Constructor Detail
-
SyncInfoValueImpl
public SyncInfoValueImpl()
Creates a new instance of SyncInfoValueImpl.
-
-
Method Detail
-
getCookie
public byte[] getCookie()
- Specified by:
getCookie
in interfaceSyncInfoValue
- Returns:
- the cookie
-
setCookie
public void setCookie(byte[] cookie)
- Specified by:
setCookie
in interfaceSyncInfoValue
- Parameters:
cookie
- the cookie to set
-
isRefreshDone
public boolean isRefreshDone()
- Specified by:
isRefreshDone
in interfaceSyncInfoValue
- Returns:
- the refreshDone
-
setRefreshDone
public void setRefreshDone(boolean refreshDone)
- Specified by:
setRefreshDone
in interfaceSyncInfoValue
- Parameters:
refreshDone
- the refreshDone to set
-
isRefreshDeletes
public boolean isRefreshDeletes()
- Specified by:
isRefreshDeletes
in interfaceSyncInfoValue
- Returns:
- the refreshDeletes
-
setRefreshDeletes
public void setRefreshDeletes(boolean refreshDeletes)
- Specified by:
setRefreshDeletes
in interfaceSyncInfoValue
- Parameters:
refreshDeletes
- the refreshDeletes to set
-
getSyncUUIDs
public List<byte[]> getSyncUUIDs()
- Specified by:
getSyncUUIDs
in interfaceSyncInfoValue
- Returns:
- the syncUUIDs
-
setSyncUUIDs
public void setSyncUUIDs(List<byte[]> syncUUIDs)
- Specified by:
setSyncUUIDs
in interfaceSyncInfoValue
- Parameters:
syncUUIDs
- the syncUUIDs to set
-
addSyncUUID
public void addSyncUUID(byte[] syncUUID)
- Specified by:
addSyncUUID
in interfaceSyncInfoValue
- Parameters:
syncUUID
- the syncUUIDs to set
-
hashCode
public int hashCode()
Description copied from class:IntermediateResponseImpl
- Overrides:
hashCode
in classIntermediateResponseImpl
- Returns:
- the instance's hash code
- See Also:
Object.hashCode()
-
equals
public boolean equals(Object o)
Description copied from class:IntermediateResponseImpl
Checks to see if an object equals this IntemediateResponse.- Overrides:
equals
in classIntermediateResponseImpl
- Parameters:
o
- the object to be checked for equality- Returns:
- true if the obj equals this IntemediateResponse, false otherwise
- See Also:
Object.equals(Object)
-
toString
public String toString()
Description copied from class:IntermediateResponseImpl
Get a String representation of an IntermediateResponse- Overrides:
toString
in classIntermediateResponseImpl
- Returns:
- An IntermediateResponse String
- See Also:
Object.toString()
-
getSyncInfoValueType
public SynchronizationInfoEnum getSyncInfoValueType()
Description copied from interface:SyncInfoValue
Get the value type.- Specified by:
getSyncInfoValueType
in interfaceSyncInfoValue
- Returns:
- the type : one of newCookie, refreshDelete, refreshPresent or syncIdSet
-
setSyncInfoValueType
public void setSyncInfoValueType(SynchronizationInfoEnum type)
- Specified by:
setSyncInfoValueType
in interfaceSyncInfoValue
- Parameters:
type
- the synchronization type to set
-
-