|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.directory.shared.asn1.AbstractAsn1Object
org.apache.directory.shared.ldap.codec.controls.ControlDecorator<SyncModifyDn>
org.apache.directory.shared.ldap.extras.controls.syncrepl_impl.SyncModifyDnDecorator
public class SyncModifyDnDecorator
A SyncModifyDnControl object, to send the parameters used in a MODIFYDN operation that was carried out on a syncrepl provider server. The consumer will use the values present in this control to perform the same operation on its local data, which helps in avoiding huge number of updates to the consumer. NOTE: syncrepl, defined in RFC 4533, doesn't mention about this approach, this is a special extension provided by Apache Directory Server
| Field Summary |
|---|
| Fields inherited from class org.apache.directory.shared.ldap.codec.controls.ControlDecorator |
|---|
value, valueLength |
| Fields inherited from interface org.apache.directory.shared.ldap.extras.controls.SyncModifyDn |
|---|
OID |
| Constructor Summary | |
|---|---|
SyncModifyDnDecorator(LdapCodecService codec)
|
|
SyncModifyDnDecorator(LdapCodecService codec,
SyncModifyDn control)
|
|
SyncModifyDnDecorator(LdapCodecService codec,
SyncModifyDnType type)
|
|
| Method Summary | |
|---|---|
int |
computeLength()
Compute the SyncStateValue length. |
Asn1Object |
decode(byte[] controlBytes)
Decodes raw ASN.1 encoded bytes into an Asn1Object for the control. |
ByteBuffer |
encode(ByteBuffer buffer)
Encode the SyncStateValue control |
String |
getEntryDn()
|
SyncModifyDnType |
getModDnType()
|
String |
getNewRdn()
|
String |
getNewSuperiorDn()
|
byte[] |
getValue()
Get the control value |
boolean |
isDeleteOldRdn()
|
void |
setDeleteOldRdn(boolean deleteOldRdn)
|
void |
setEntryDn(String entryDn)
|
void |
setModDnType(SyncModifyDnType modDnType)
|
void |
setNewRdn(String newRdn)
|
void |
setNewSuperiorDn(String newSuperiorDn)
|
| Methods inherited from class org.apache.directory.shared.ldap.codec.controls.ControlDecorator |
|---|
equals, getCodecService, getDecorated, getOid, hashCode, hasValue, isCritical, setCritical, setDecorated, setValue, toString |
| Methods inherited from class org.apache.directory.shared.asn1.AbstractAsn1Object |
|---|
addLength, getCurrentLength, getExpectedLength, getParent, getTlvId, setCurrentLength, setExpectedLength, setParent |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.apache.directory.shared.ldap.model.message.Control |
|---|
getOid, isCritical, setCritical |
| Constructor Detail |
|---|
public SyncModifyDnDecorator(LdapCodecService codec)
public SyncModifyDnDecorator(LdapCodecService codec,
SyncModifyDnType type)
public SyncModifyDnDecorator(LdapCodecService codec,
SyncModifyDn control)
| Method Detail |
|---|
public int computeLength()
computeLength in interface Asn1ObjectcomputeLength in interface Decorator<SyncModifyDn>computeLength in class ControlDecorator<SyncModifyDn>
public ByteBuffer encode(ByteBuffer buffer)
throws EncoderException
encode in interface Asn1Objectencode in interface Decorator<SyncModifyDn>encode in class AbstractAsn1Objectbuffer - The encoded sink
EncoderException - If anything goes wrong.public byte[] getValue()
getValue in interface CodecControl<SyncModifyDn>getValue in class ControlDecorator<SyncModifyDn>public String getEntryDn()
getEntryDn in interface SyncModifyDnpublic void setEntryDn(String entryDn)
setEntryDn in interface SyncModifyDnpublic String getNewSuperiorDn()
getNewSuperiorDn in interface SyncModifyDnpublic void setNewSuperiorDn(String newSuperiorDn)
setNewSuperiorDn in interface SyncModifyDnpublic String getNewRdn()
getNewRdn in interface SyncModifyDnpublic void setNewRdn(String newRdn)
setNewRdn in interface SyncModifyDnpublic boolean isDeleteOldRdn()
isDeleteOldRdn in interface SyncModifyDnpublic void setDeleteOldRdn(boolean deleteOldRdn)
setDeleteOldRdn in interface SyncModifyDnpublic SyncModifyDnType getModDnType()
getModDnType in interface SyncModifyDnpublic void setModDnType(SyncModifyDnType modDnType)
setModDnType in interface SyncModifyDn
public Asn1Object decode(byte[] controlBytes)
throws DecoderException
decode in interface CodecControl<SyncModifyDn>controlBytes - the encoded control bytes
DecoderException - if anything goes wrong
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||