Interface SyncInfoValue
- All Superinterfaces:
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
- All Known Implementing Classes:
SyncInfoValueImpl
public interface SyncInfoValue
extends org.apache.directory.api.ldap.model.message.IntermediateResponse
A syncInfoValue object, as defined in RFC 4533 ;
2.5. Sync Info Message
The Sync Info Message is an LDAP Intermediate Response Message
[RFC4511] where responseName is the object identifier
1.3.6.1.4.1.4203.1.9.1.4 and responseValue contains a BER-encoded
syncInfoValue. The criticality is FALSE (and hence absent).
syncInfoValue ::= CHOICE {
newcookie [0] syncCookie,
refreshDelete [1] SEQUENCE {
cookie syncCookie OPTIONAL,
refreshDone BOOLEAN DEFAULT TRUE
},
refreshPresent [2] SEQUENCE {
cookie syncCookie OPTIONAL,
refreshDone BOOLEAN DEFAULT TRUE
},
syncIdSet [3] SEQUENCE {
cookie syncCookie OPTIONAL,
refreshDeletes BOOLEAN DEFAULT FALSE,
syncUUIDs SET OF syncUUID
}
}
- Author:
- Apache Directory Project
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidaddSyncUUID(byte[] syncUUID) Set the syncUUIDbyte[]Get the cookieGet the value type.List<byte[]> Get the syncUUIDsbooleanTells 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 syncUUIDsMethods 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
-
Field Details
-
OID
-
-
Method Details
-
getSyncInfoValueType
SynchronizationInfoEnum getSyncInfoValueType()Get the value type.- Returns:
- the type : one of newCookie, refreshDelete, refreshPresent or syncIdSet
-
setSyncInfoValueType
Set the the synchronization type- Parameters:
type- the synchronization type to set
-
getCookie
byte[] getCookie()Get the cookie- Returns:
- the cookie
-
setCookie
void setCookie(byte[] cookie) Set the cookie- Parameters:
cookie- the cookie to set
-
isRefreshDone
boolean isRefreshDone()Tells if the refreshDone flag is set totrue- Returns:
- the refreshDone
-
setRefreshDone
void setRefreshDone(boolean refreshDone) Set the refreshDone flag- Parameters:
refreshDone- the refreshDone to set
-
isRefreshDeletes
boolean isRefreshDeletes()Tells if the refreshDeletes flag is set totrue- Returns:
- the refreshDeletes
-
setRefreshDeletes
void setRefreshDeletes(boolean refreshDeletes) Set the refreshDeletes flag- Parameters:
refreshDeletes- the refreshDeletes to set
-
getSyncUUIDs
-
setSyncUUIDs
Set the syncUUIDs- Parameters:
syncUUIDs- the syncUUIDs to set
-
addSyncUUID
void addSyncUUID(byte[] syncUUID) Set the syncUUID- Parameters:
syncUUID- the syncUUIDs to set
-