Package org.opends.server.core
Class CompareOperationWrapper
- java.lang.Object
-
- org.opends.server.core.OperationWrapper<CompareOperation>
-
- org.opends.server.core.CompareOperationWrapper
-
- All Implemented Interfaces:
Runnable,CompareOperation,Operation
- Direct Known Subclasses:
LocalBackendCompareOperation
public abstract class CompareOperationWrapper extends OperationWrapper<CompareOperation> implements CompareOperation
This abstract class wraps/decorates a given compare operation. This class will be extended by sub-classes to enhance the functionality of the CompareOperationBasis.
-
-
Field Summary
-
Fields inherited from interface org.opends.server.types.Operation
LOCALBACKENDOPERATIONS
-
-
Constructor Summary
Constructors Constructor Description CompareOperationWrapper(CompareOperation compare)Creates a new compare operation based on the provided compare operation.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ByteStringgetAssertionValue()Retrieves the assertion value for this compare operation.AttributeDescriptiongetAttributeDescription()Retrieves the attribute description for this compare operation.DNgetEntryDN()Retrieves the DN of the entry to compare.StringgetRawAttributeType()Retrieves the raw attribute type for this compare operation.ByteStringgetRawEntryDN()Retrieves the raw, unprocessed entry DN as included in the client request.voidsetAssertionValue(ByteString assertionValue)Specifies the assertion value for this compare operation.voidsetRawAttributeType(String rawAttributeType)Specifies the raw attribute type for this compare operation.voidsetRawEntryDN(ByteString rawEntryDN)Specifies the raw, unprocessed entry DN as included in the client request.-
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, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.opends.server.core.CompareOperation
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, toString
-
-
-
-
Constructor Detail
-
CompareOperationWrapper
public CompareOperationWrapper(CompareOperation compare)
Creates a new compare operation based on the provided compare operation.- Parameters:
compare- The compare operation to wrap
-
-
Method Detail
-
getRawEntryDN
public ByteString getRawEntryDN()
Description copied from interface:CompareOperationRetrieves 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 interfaceCompareOperation- Returns:
- The raw, unprocessed entry DN as included in the client request.
-
setRawEntryDN
public void setRawEntryDN(ByteString rawEntryDN)
Description copied from interface:CompareOperationSpecifies the raw, unprocessed entry DN as included in the client request. This should only be called by pre-parse plugins.- Specified by:
setRawEntryDNin interfaceCompareOperation- Parameters:
rawEntryDN- The raw, unprocessed entry DN as included in the client request.
-
getEntryDN
public DN getEntryDN()
Description copied from interface:CompareOperationRetrieves the DN of the entry to compare. 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 interfaceCompareOperation- Returns:
- The DN of the entry to compare, or
nullif the raw entry DN has not yet been processed.
-
getRawAttributeType
public String getRawAttributeType()
Description copied from interface:CompareOperationRetrieves the raw attribute type for this compare operation.- Specified by:
getRawAttributeTypein interfaceCompareOperation- Returns:
- The raw attribute type for this compare operation.
-
setRawAttributeType
public void setRawAttributeType(String rawAttributeType)
Description copied from interface:CompareOperationSpecifies the raw attribute type for this compare operation. This should only be called by pre-parse plugins.- Specified by:
setRawAttributeTypein interfaceCompareOperation- Parameters:
rawAttributeType- The raw attribute type for this compare operation.
-
getAttributeDescription
public AttributeDescription getAttributeDescription()
Description copied from interface:CompareOperationRetrieves the attribute description for this compare operation. This should not be called by pre-parse plugins because the processed attribute description will not be available yet.- Specified by:
getAttributeDescriptionin interfaceCompareOperation- Returns:
- The attribute description for this compare operation.
-
getAssertionValue
public ByteString getAssertionValue()
Description copied from interface:CompareOperationRetrieves the assertion value for this compare operation.- Specified by:
getAssertionValuein interfaceCompareOperation- Returns:
- The assertion value for this compare operation.
-
setAssertionValue
public void setAssertionValue(ByteString assertionValue)
Description copied from interface:CompareOperationSpecifies the assertion value for this compare operation. This should only be called by pre-parse and pre-operation plugins.- Specified by:
setAssertionValuein interfaceCompareOperation- Parameters:
assertionValue- The assertion value for this compare operation.
-
-