Package org.opends.server.core
Class ModifyOperationWrapper
- java.lang.Object
-
- org.opends.server.core.OperationWrapper<ModifyOperation>
-
- org.opends.server.core.ModifyOperationWrapper
-
- All Implemented Interfaces:
Runnable,ModifyOperation,Operation
- Direct Known Subclasses:
LocalBackendModifyOperation
public abstract class ModifyOperationWrapper extends OperationWrapper<ModifyOperation> implements ModifyOperation
This abstract class wraps/decorates a given modify operation. This class will be extended by sub-classes to enhance the functionality of the ModifyOperationBasis.
-
-
Field Summary
-
Fields inherited from interface org.opends.server.types.Operation
LOCALBACKENDOPERATIONS
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedModifyOperationWrapper(ModifyOperation modify)Creates a new modify operation based on the provided modify operation.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddModification(Modification modification)Adds the provided modification to the set of modifications to this modify operation.voidaddRawModification(RawModification rawModification)Adds the provided modification to the set of raw modifications for this modify operation.DNgetEntryDN()Retrieves the DN of the entry to modify.List<Modification>getModifications()Retrieves the set of modifications for this modify operation.ByteStringgetRawEntryDN()Retrieves the raw, unprocessed entry DN as included in the client request.List<RawModification>getRawModifications()Retrieves the set of raw, unprocessed modifications as included in the client request.voidsetRawEntryDN(ByteString rawEntryDN)Specifies the raw, unprocessed entry DN as included in the client request.voidsetRawModifications(List<RawModification> rawModifications)Specifies the raw modifications for this modify operation.StringtoString()Retrieves a string representation of this operation.-
Methods inherited from class org.opends.server.core.OperationWrapper
abort, addAdditionalLogItem, addRequestControl, addResponseControl, appendErrorMessage, appendMaskedErrorMessage, cancel, checkIfCanceled, disconnectClient, dontSynchronize, equals, getAdditionalLogItems, getAttachment, getAttachments, getAuthorizationDN, getAuthorizationEntry, getCancelRequest, getCancelResult, getClientConnection, getConnectionID, getErrorMessage, getMaskedErrorMessage, getMaskedResultCode, getMatchedDN, getMessageID, getOperation, getOperationID, getOperationType, getProcessingNanoTime, getProcessingStartTime, getProcessingStopTime, getProcessingTime, getProxiedAuthorizationDN, getReferralURLs, getRequestControl, getRequestControls, getResponseControls, getResultCode, hashCode, isInnerOperation, isInternalOperation, isSynchronizationOperation, operationCompleted, registerPostResponseCallback, removeAttachment, removeResponseControl, run, setAttachment, setAttachments, setAuthorizationEntry, setDontSynchronize, setErrorMessage, setInnerOperation, setInternalOperation, setMaskedErrorMessage, setMaskedResultCode, setMatchedDN, setProxiedAuthorizationDN, setReferralURLs, setResponseData, setResultCode, setSynchronizationOperation, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.opends.server.core.ModifyOperation
getProxiedAuthorizationDN, setProxiedAuthorizationDN
-
Methods inherited from interface org.opends.server.types.Operation
abort, addAdditionalLogItem, addRequestControl, addResponseControl, appendErrorMessage, appendMaskedErrorMessage, cancel, checkIfCanceled, disconnectClient, dontSynchronize, getAdditionalLogItems, getAttachment, getAttachments, getAuthorizationDN, getAuthorizationEntry, getCancelRequest, getCancelResult, getClientConnection, getConnectionID, getErrorMessage, getMaskedErrorMessage, getMaskedResultCode, getMatchedDN, getMessageID, getOperationID, getOperationType, getProcessingNanoTime, getProcessingStartTime, getProcessingStopTime, getProcessingTime, getReferralURLs, getRequestControl, getRequestControls, getResponseControls, getResultCode, isInnerOperation, isInternalOperation, isSynchronizationOperation, operationCompleted, registerPostResponseCallback, removeAttachment, removeResponseControl, run, setAttachment, setAttachments, setAuthorizationEntry, setDontSynchronize, setErrorMessage, setInnerOperation, setInternalOperation, setMaskedErrorMessage, setMaskedResultCode, setMatchedDN, setReferralURLs, setResponseData, setResultCode, setSynchronizationOperation, toString
-
-
-
-
Constructor Detail
-
ModifyOperationWrapper
protected ModifyOperationWrapper(ModifyOperation modify)
Creates a new modify operation based on the provided modify operation.- Parameters:
modify- The modify operation to wrap
-
-
Method Detail
-
addModification
public void addModification(Modification modification) throws DirectoryException
Description copied from interface:ModifyOperationAdds the provided modification to the set of modifications to this modify operation. This may only be called by pre-operation plugins.- Specified by:
addModificationin interfaceModifyOperation- Parameters:
modification- The modification to add to the set of changes for this modify operation.- Throws:
DirectoryException- If an unexpected problem occurs while applying the modification to the entry.
-
addRawModification
public void addRawModification(RawModification rawModification)
Description copied from interface:ModifyOperationAdds the provided modification to the set of raw modifications for this modify operation. This must only be called by pre-parse plugins.- Specified by:
addRawModificationin interfaceModifyOperation- Parameters:
rawModification- The modification to add to the set of raw modifications for this modify operation.
-
getEntryDN
public DN getEntryDN()
Description copied from interface:ModifyOperationRetrieves the DN of the entry to modify. This should not be called by pre-parse plugins because the processed DN will not be available yet. Instead, they should call thegetRawEntryDNmethod.- Specified by:
getEntryDNin interfaceModifyOperation- Returns:
- The DN of the entry to modify, or
nullif the raw entry DN has not yet been processed.
-
getModifications
public List<Modification> getModifications()
Description copied from interface:ModifyOperationRetrieves the set of modifications for this modify operation. Its contents should not be altered. It will not be available to pre-parse plugins.- Specified by:
getModificationsin interfaceModifyOperation- Returns:
- The set of modifications for this modify operation, or
nullif the modifications have not yet been processed.
-
getRawEntryDN
public ByteString getRawEntryDN()
Description copied from interface:ModifyOperationRetrieves the raw, unprocessed entry DN as included in the client request. The DN that is returned may or may not be a valid DN, since no validation will have been performed upon it.- Specified by:
getRawEntryDNin interfaceModifyOperation- Returns:
- The raw, unprocessed entry DN as included in the client request.
-
getRawModifications
public List<RawModification> getRawModifications()
Description copied from interface:ModifyOperationRetrieves the set of raw, unprocessed modifications as included in the client request. Note that this may contain one or more invalid modifications, as no validation will have been performed on this information. The list returned must not be altered by the caller.- Specified by:
getRawModificationsin interfaceModifyOperation- Returns:
- The set of raw, unprocessed modifications as included in the client request.
-
setRawEntryDN
public void setRawEntryDN(ByteString rawEntryDN)
Description copied from interface:ModifyOperationSpecifies the raw, unprocessed entry DN as included in the client request. This should only be called by pre-parse plugins.- Specified by:
setRawEntryDNin interfaceModifyOperation- Parameters:
rawEntryDN- The raw, unprocessed entry DN as included in the client request.
-
setRawModifications
public void setRawModifications(List<RawModification> rawModifications)
Description copied from interface:ModifyOperationSpecifies the raw modifications for this modify operation.- Specified by:
setRawModificationsin interfaceModifyOperation- Parameters:
rawModifications- The raw modifications for this modify operation.
-
toString
public String toString()
Description copied from interface:OperationRetrieves a string representation of this operation.- Specified by:
toStringin interfaceOperation- Overrides:
toStringin classOperationWrapper<ModifyOperation>- Returns:
- A string representation of this operation.
-
-