|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opends.server.core.OperationWrapper
org.opends.server.core.ModifyDNOperationWrapper
public abstract class ModifyDNOperationWrapper
This abstract class wraps/decorates a given moddn operation. This class will be extended by sub-classes to enhance the functionnality of the ModifyDNOperationBasis.
Field Summary |
---|
Fields inherited from interface org.opends.server.types.Operation |
---|
LOCALBACKENDOPERATIONS |
Constructor Summary | |
---|---|
ModifyDNOperationWrapper(ModifyDNOperation modifyDN)
Creates a new moddn operation based on the provided moddn operation. |
Method Summary | |
---|---|
void |
addModification(Modification modification)
Adds the provided modification to the set of modifications to be applied as part of the update. |
boolean |
deleteOldRDN()
Indicates whether the current RDN value should be removed from the entry. |
long |
getChangeNumber()
Retrieves the change number that has been assigned to this operation. |
DN |
getEntryDN()
Retrieves the DN of the entry to rename. |
java.util.List<Modification> |
getModifications()
Retrieves the set of modifications applied to attributes of the target entry in the course of processing this modify DN operation. |
DN |
getNewDN()
Retrieves the new DN for the entry. |
RDN |
getNewRDN()
Retrieves the new RDN to use for the entry. |
DN |
getNewSuperior()
Retrieves the newSuperior DN for the entry. |
Entry |
getOriginalEntry()
Retrieves the current entry, before it is renamed. |
DN |
getProxiedAuthorizationDN()
Retrieves the proxied authorization DN for this operation if proxied authorization has been requested. |
ByteString |
getRawEntryDN()
Retrieves the raw, unprocessed entry DN as included in the client request. |
ByteString |
getRawNewRDN()
Retrieves the raw, unprocessed newRDN as included in the request from the client. |
ByteString |
getRawNewSuperior()
Retrieves the raw, unprocessed newSuperior from the client request. |
Entry |
getUpdatedEntry()
Retrieves the new entry, as it will appear after it is renamed. |
void |
setChangeNumber(long changeNumber)
Specifies the change number that has been assigned to this operation by the synchronization mechanism. |
void |
setDeleteOldRDN(boolean deleteOldRDN)
Specifies whether the current RDN value should be removed from the entry. |
void |
setProxiedAuthorizationDN(DN dn)
Sets the proxied authorization DN for this operation if proxied authorization has been requested. |
void |
setRawEntryDN(ByteString rawEntryDN)
Specifies the raw, unprocessed entry DN as included in the client request. |
void |
setRawNewRDN(ByteString rawNewRDN)
Specifies the raw, unprocessed newRDN as included in the request from the client. |
void |
setRawNewSuperior(ByteString rawNewSuperior)
Specifies the raw, unprocessed newSuperior for this modify DN operation, as provided in the request from the client. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.opends.server.types.operation.InProgressOperation |
---|
addResponseControl, appendAdditionalLogMessage, appendErrorMessage, getAdditionalLogMessage, getAuthorizationDN, getErrorMessage, getMatchedDN, getReferralURLs, getResultCode, removeResponseControl, setAdditionalLogMessage, setErrorMessage, setMatchedDN, setReferralURLs, setResponseData, setResultCode |
Methods inherited from interface org.opends.server.types.operation.PluginOperation |
---|
checkIfCanceled, disconnectClient, getAttachment, getAttachments, getClientConnection, getConnectionID, getMessageID, getOperationID, getOperationType, getProcessingStartTime, getRequestControls, getResponseControls, isInternalOperation, isSynchronizationOperation, removeAttachment, setAttachment, toString, toString |
Constructor Detail |
---|
public ModifyDNOperationWrapper(ModifyDNOperation modifyDN)
modifyDN
- The moddn operation to wrapMethod Detail |
---|
public void addModification(Modification modification)
addModification
in interface ModifyDNOperation
modification
- The modification to add to the set of modifications
to apply to the entry.public boolean deleteOldRDN()
deleteOldRDN
in interface ModifyDNOperation
deleteOldRDN
in interface SubordinateModifyDNOperation
true
if the current RDN value should be removed from
the entry, or false
if not.public long getChangeNumber()
getChangeNumber
in interface ModifyDNOperation
public DN getEntryDN()
getRawEntryDN
method.
getEntryDN
in interface ModifyDNOperation
getEntryDN
in interface SubordinateModifyDNOperation
null
if the raw
entry DN has not yet been processed.public java.util.List<Modification> getModifications()
getModifications
in interface ModifyDNOperation
null
if that
information is not yet available (e.g., during pre-parse plugins).public RDN getNewRDN()
getRawNewRDN
method.
getNewRDN
in interface ModifyDNOperation
getNewRDN
in interface SubordinateModifyDNOperation
null
if the raw
newRDN has not yet been processed.public DN getNewSuperior()
getRawNewSuperior
method.
getNewSuperior
in interface ModifyDNOperation
getNewSuperior
in interface SubordinateModifyDNOperation
null
if there is
no newSuperior DN for this request or if the raw newSuperior has
not yet been processed.public Entry getOriginalEntry()
getOriginalEntry
in interface ModifyDNOperation
getOriginalEntry
in interface SubordinateModifyDNOperation
null
if it is not yet
available.public DN getProxiedAuthorizationDN()
getProxiedAuthorizationDN
in interface ModifyDNOperation
null
if proxied
authorization has not been requested.public ByteString getRawEntryDN()
getRawEntryDN
in interface ModifyDNOperation
getRawEntryDN
in interface SubordinateModifyDNOperation
public ByteString getRawNewRDN()
getRawNewRDN
in interface ModifyDNOperation
getRawNewRDN
in interface SubordinateModifyDNOperation
public ByteString getRawNewSuperior()
getRawNewSuperior
in interface ModifyDNOperation
getRawNewSuperior
in interface SubordinateModifyDNOperation
null
if there is none.public Entry getUpdatedEntry()
getUpdatedEntry
in interface ModifyDNOperation
getUpdatedEntry
in interface SubordinateModifyDNOperation
null
if it is not yet
available.public void setChangeNumber(long changeNumber)
setChangeNumber
in interface ModifyDNOperation
changeNumber
- The change number that has been assigned to this
operation by the synchronization mechanism.public void setDeleteOldRDN(boolean deleteOldRDN)
setDeleteOldRDN
in interface ModifyDNOperation
deleteOldRDN
- Specifies whether the current RDN value should be
removed from the entry.public void setRawEntryDN(ByteString rawEntryDN)
setRawEntryDN
in interface ModifyDNOperation
rawEntryDN
- The raw, unprocessed entry DN as included in the client
request.public void setRawNewRDN(ByteString rawNewRDN)
setRawNewRDN
in interface ModifyDNOperation
rawNewRDN
- The raw, unprocessed newRDN as included in the request
from the client.public void setRawNewSuperior(ByteString rawNewSuperior)
setRawNewSuperior
in interface ModifyDNOperation
rawNewSuperior
- The raw, unprocessed newSuperior as provided in the
request from the client.public void setProxiedAuthorizationDN(DN dn)
setProxiedAuthorizationDN
in interface ModifyDNOperation
dn
- The proxied authorization DN for this operation if proxied
authorization has been requested, or null
if proxied
authorization has not been requested.public DN getNewDN()
getNewDN
in interface ModifyDNOperation
null
if there is
neither newRDN, nor entryDN for this request.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |