public class SyncInfoValueDecorator extends ControlDecorator<SyncInfoValue> implements SyncInfoValue
value, valueLengthOID| Constructor and Description |
|---|
SyncInfoValueDecorator(LdapApiService codec)
The constructor for this codec.
|
SyncInfoValueDecorator(LdapApiService codec,
SynchronizationInfoEnum type)
The constructor for this codec.
|
SyncInfoValueDecorator(LdapApiService codec,
SyncInfoValue control)
The constructor for this codec.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addSyncUUID(byte[] syncUUID) |
int |
computeLength()
Compute the SyncInfoValue length.
|
Asn1Object |
decode(byte[] controlBytes)
Decodes raw ASN.1 encoded bytes into an Asn1Object for the control.
|
ByteBuffer |
encode(ByteBuffer buffer)
Encode the SyncInfoValue control
|
byte[] |
getCookie() |
List<byte[]> |
getSyncUUIDs() |
SynchronizationInfoEnum |
getType()
Get the control type.
|
byte[] |
getValue()
Get the control value
|
boolean |
isRefreshDeletes() |
boolean |
isRefreshDone() |
void |
setCookie(byte[] cookie) |
void |
setRefreshDeletes(boolean refreshDeletes) |
void |
setRefreshDone(boolean refreshDone) |
void |
setSyncUUIDs(List<byte[]> syncUUIDs) |
void |
setType(SynchronizationInfoEnum type) |
String |
toString()
Return a String representing a Control
|
equals, getCodecService, getDecorated, getOid, hashCode, hasValue, isCritical, setCritical, setDecorated, setValueclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetOid, isCritical, setCriticalpublic SyncInfoValueDecorator(LdapApiService codec)
public SyncInfoValueDecorator(LdapApiService codec, SyncInfoValue control)
public SyncInfoValueDecorator(LdapApiService codec, SynchronizationInfoEnum type)
type - The kind of syncInfo we will store. Can be newCookie,
refreshPresent, refreshDelete or syncIdSetpublic SynchronizationInfoEnum getType()
getType in interface SyncInfoValuepublic void setType(SynchronizationInfoEnum type)
setType in interface SyncInfoValuepublic byte[] getCookie()
getCookie in interface SyncInfoValuepublic void setCookie(byte[] cookie)
setCookie in interface SyncInfoValuecookie - the cookie to setpublic boolean isRefreshDone()
isRefreshDone in interface SyncInfoValuepublic void setRefreshDone(boolean refreshDone)
setRefreshDone in interface SyncInfoValuerefreshDone - the refreshDone to setpublic boolean isRefreshDeletes()
isRefreshDeletes in interface SyncInfoValuepublic void setRefreshDeletes(boolean refreshDeletes)
setRefreshDeletes in interface SyncInfoValuerefreshDeletes - the refreshDeletes to setpublic List<byte[]> getSyncUUIDs()
getSyncUUIDs in interface SyncInfoValuepublic void setSyncUUIDs(List<byte[]> syncUUIDs)
setSyncUUIDs in interface SyncInfoValuesyncUUIDs - the syncUUIDs to setpublic void addSyncUUID(byte[] syncUUID)
addSyncUUID in interface SyncInfoValuepublic int computeLength()
computeLength in interface Asn1ObjectcomputeLength in interface Decorator<SyncInfoValue>computeLength in class ControlDecorator<SyncInfoValue>public ByteBuffer encode(ByteBuffer buffer) throws EncoderException
encode in interface Asn1Objectencode in interface Decorator<SyncInfoValue>buffer - The encoded sinkEncoderException - If anything goes wrong.public byte[] getValue()
getValue in interface CodecControl<SyncInfoValue>getValue in class ControlDecorator<SyncInfoValue>public Asn1Object decode(byte[] controlBytes) throws DecoderException
decode in interface CodecControl<SyncInfoValue>controlBytes - the encoded control bytesDecoderException - if anything goes wrongpublic String toString()
ControlDecoratortoString in class ControlDecorator<SyncInfoValue>Object.toString()Copyright © 2021. All rights reserved.