public final class ModifyOperationBasis extends AbstractOperation implements ModifyOperation, PreOperationModifyOperation, PreParseModifyOperation, PostOperationModifyOperation, PostResponseModifyOperation, PostSynchronizationModifyOperation
NO_RESPONSE_CONTROLS, requestContext
Constructor and Description |
---|
ModifyOperationBasis(org.forgerock.services.context.Context context,
ModifyRequest modifyRequest)
Creates a new modify operation with the provided information.
|
Modifier and Type | Method and Description |
---|---|
void |
addModification(Modification modification)
Adds the provided modification to the set of modifications to this modify operation.
|
void |
addRawModification(RawModification rawModification)
Adds the provided modification to the set of raw modifications for this modify operation.
|
void |
addResponseControl(Control control)
Adds the provided control to the set of controls to include in the response to the client.
|
Entry |
getCurrentEntry()
Retrieves the current entry before any modifications are applied.
|
List<ByteString> |
getCurrentPasswords()
Retrieves the set of clear-text current passwords for the user, if available.
|
Dn |
getEntryDN()
Retrieves the DN of the entry to modify.
|
List<Modification> |
getModifications()
Retrieves the set of modifications for this modify operation.
|
Entry |
getModifiedEntry()
Retrieves the modified entry that is to be written to the backend.
|
List<ByteString> |
getNewPasswords()
Retrieves the set of clear-text new passwords for the user, if available.
|
OperationType |
getOperationType()
Retrieves the operation type for this operation.
|
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.
|
List<RawModification> |
getRawModifications()
Retrieves the set of raw, unprocessed modifications as included in the client request.
|
List<Control> |
getResponseControls()
Retrieves the set of controls to include in the response to the client.
|
void |
removeResponseControl(Control control)
Removes the provided control from the set of controls to include in the response to the client.
|
void |
run()
Performs the work of actually processing this operation.
|
void |
setProxiedAuthorizationDN(Dn proxiedAuthorizationDN)
Set 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 |
setRawModifications(List<RawModification> rawModifications)
Specifies the raw modifications for this modify operation.
|
void |
toString(StringBuilder buffer)
Appends a string representation of this operation to the provided buffer.
|
void |
updateOperationErrMsgAndResCode()
Updates the error message and the result code of the operation.
|
addAdditionalLogItem, addPostReadResponse, addPreReadResponse, addRequestControl, appendErrorMessage, appendMaskedErrorMessage, checkAttributeConformsToSyntax, checkIfBackendIsWritable, checkIfCanceled, disconnectClient, dontSynchronize, equals, evaluateProxyAuthControls, filterNonDisclosableMatchedDN, findMatchedDN, getAdditionalLogItems, getAttachment, getAttachments, getAuthorizationDN, getAuthorizationEntry, getClientConnection, getConnectionID, getContext, getErrorMessage, getLocalBackend, getMaskedErrorMessage, getMaskedResultCode, getMatchedDN, getMessageID, getOperationID, getProcessingNanoTime, getProcessingStartTime, getProcessingStopTime, getProcessingTime, getReferralURLs, getRequestControl, getRequestControls, getResultCode, hashCode, invokePostResponseCallbacks, isHumanReadable, isInnerOperation, isInternalOperation, isProxyAuthzControl, isSynchronizationOperation, mustCheckSchema, newDirectoryException, operationCompleted, processOperationResult, processOperationResult, registerPostResponseCallback, removeAllDisallowedControls, removeAttachment, setAttachment, setAttachments, setAuthorizationEntry, setDontSynchronize, setErrorMessage, setInnerOperation, setInternalOperation, setMaskedErrorMessage, setMaskedResultCode, setMatchedDN, setProcessingStartTime, setProcessingStopTime, setReferralURLs, setResponseData, setResult, setResultCode, setResultCodeAndMessageNoInfoDisclosure, setSynchronizationOperation, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
addAdditionalLogItem, addRequestControl, appendErrorMessage, appendMaskedErrorMessage, disconnectClient, dontSynchronize, getAdditionalLogItems, getAttachment, getAttachments, getAuthorizationDN, getAuthorizationEntry, getClientConnection, getConnectionID, getContext, getErrorMessage, getMaskedErrorMessage, getMaskedResultCode, getMatchedDN, getMessageID, getOperationID, getProcessingNanoTime, getProcessingStartTime, getProcessingStopTime, getProcessingTime, getReferralURLs, getRequestControl, getRequestControls, getResultCode, isInnerOperation, isInternalOperation, isSynchronizationOperation, operationCompleted, registerPostResponseCallback, removeAttachment, setAttachment, setAttachments, setAuthorizationEntry, setDontSynchronize, setErrorMessage, setInnerOperation, setInternalOperation, setMaskedErrorMessage, setMaskedResultCode, setMatchedDN, setReferralURLs, setResponseData, setResult, setResultCode, setSynchronizationOperation, toString
addAdditionalLogItem, appendErrorMessage, getAdditionalLogItems, getAuthorizationDN, getErrorMessage, setErrorMessage
addAdditionalLogItem, addRequestControl, appendErrorMessage, getAdditionalLogItems, getErrorMessage, setErrorMessage
addAdditionalLogItem, appendErrorMessage, getAdditionalLogItems, getAuthorizationDN, getErrorMessage, getMatchedDN, getReferralURLs, getResultCode, setErrorMessage, setMatchedDN, setReferralURLs, setResponseData, setResultCode
getAdditionalLogItems, getAuthorizationDN, getErrorMessage, getMatchedDN, getProcessingStopTime, getProcessingTime, getReferralURLs, getResultCode
getAdditionalLogItems, getAuthorizationDN, getErrorMessage, getMatchedDN, getProcessingStopTime, getProcessingTime, getReferralURLs, getResultCode
checkIfCanceled, disconnectClient, getAttachment, getAttachments, getClientConnection, getConnectionID, getMessageID, getOperationID, getProcessingStartTime, getRequestControl, getRequestControls, isInternalOperation, isSynchronizationOperation, removeAttachment, setAttachment, toString
public ModifyOperationBasis(org.forgerock.services.context.Context context, ModifyRequest modifyRequest)
context
- The context with which this operation is associated.modifyRequest
- The modify request.public final ByteString getRawEntryDN()
ModifyOperation
getRawEntryDN
in interface ModifyOperation
getRawEntryDN
in interface PostOperationModifyOperation
getRawEntryDN
in interface PostResponseModifyOperation
getRawEntryDN
in interface PostSynchronizationModifyOperation
getRawEntryDN
in interface PreOperationModifyOperation
getRawEntryDN
in interface PreParseModifyOperation
public final void setRawEntryDN(ByteString rawEntryDN)
ModifyOperation
setRawEntryDN
in interface ModifyOperation
setRawEntryDN
in interface PreParseModifyOperation
rawEntryDN
- The raw, unprocessed entry DN as included in the client request.public final Dn getEntryDN()
ModifyOperation
getRawEntryDN
method.getEntryDN
in interface ModifyOperation
getEntryDN
in interface PostOperationModifyOperation
getEntryDN
in interface PostResponseModifyOperation
getEntryDN
in interface PostSynchronizationModifyOperation
getEntryDN
in interface PreOperationModifyOperation
null
if the raw entry DN has not yet been processed.public final List<RawModification> getRawModifications()
ModifyOperation
getRawModifications
in interface ModifyOperation
getRawModifications
in interface PostOperationModifyOperation
getRawModifications
in interface PostResponseModifyOperation
getRawModifications
in interface PostSynchronizationModifyOperation
getRawModifications
in interface PreOperationModifyOperation
getRawModifications
in interface PreParseModifyOperation
public final void addRawModification(RawModification rawModification)
ModifyOperation
addRawModification
in interface ModifyOperation
addRawModification
in interface PreParseModifyOperation
rawModification
- The modification to add to the set of raw modifications for this modify operation.public final void setRawModifications(List<RawModification> rawModifications)
ModifyOperation
setRawModifications
in interface ModifyOperation
setRawModifications
in interface PreParseModifyOperation
rawModifications
- The raw modifications for this modify operation.public final List<Modification> getModifications()
ModifyOperation
getModifications
in interface ModifyOperation
getModifications
in interface PostOperationModifyOperation
getModifications
in interface PostResponseModifyOperation
getModifications
in interface PostSynchronizationModifyOperation
getModifications
in interface PreOperationModifyOperation
null
if the modifications have not
yet been processed.public final void addModification(Modification modification) throws DirectoryException
ModifyOperation
addModification
in interface ModifyOperation
addModification
in interface PreOperationModifyOperation
modification
- The modification to add to the set of changes for this modify operation.DirectoryException
- If an unexpected problem occurs while applying the modification to the entry.public final OperationType getOperationType()
Operation
getOperationType
in interface Operation
getOperationType
in interface PluginOperation
public Dn getProxiedAuthorizationDN()
ModifyOperation
getProxiedAuthorizationDN
in interface ModifyOperation
getProxiedAuthorizationDN
in interface Operation
null
if proxied authorization has not been requested.public final List<Control> getResponseControls()
Operation
getResponseControls
in interface Operation
getResponseControls
in interface PluginOperation
public final void addResponseControl(Control control)
Operation
addResponseControl
in interface Operation
addResponseControl
in interface PostOperationOperation
addResponseControl
in interface PreOperationOperation
addResponseControl
in interface PreParseOperation
control
- The control to add to the set of controls to include in the response to the client.public final void removeResponseControl(Control control)
Operation
removeResponseControl
in interface Operation
removeResponseControl
in interface PostOperationOperation
removeResponseControl
in interface PreOperationOperation
removeResponseControl
in interface PreParseOperation
control
- The control to remove from the set of controls to include in the response to the client.public final void toString(StringBuilder buffer)
Operation
toString
in interface Operation
toString
in interface PluginOperation
buffer
- The buffer into which a string representation of this operation should be appended.public void setProxiedAuthorizationDN(Dn proxiedAuthorizationDN)
ModifyOperation
setProxiedAuthorizationDN
in interface ModifyOperation
setProxiedAuthorizationDN
in interface Operation
proxiedAuthorizationDN
- The proxied authorization DN for this operation if proxied authorization has been requested, or
null
if proxied authorization has not been requested.public final void run()
Operation
public void updateOperationErrMsgAndResCode()
AbstractOperation
updateOperationErrMsgAndResCode
in class AbstractOperation
public final Entry getCurrentEntry()
getCurrentEntry
in interface PostOperationModifyOperation
getCurrentEntry
in interface PostResponseModifyOperation
getCurrentEntry
in interface PostSynchronizationModifyOperation
getCurrentEntry
in interface PreOperationModifyOperation
null
if it is not yet available.public final List<ByteString> getCurrentPasswords()
getCurrentPasswords
in interface PostOperationModifyOperation
getCurrentPasswords
in interface PostResponseModifyOperation
getCurrentPasswords
in interface PostSynchronizationModifyOperation
getCurrentPasswords
in interface PreOperationModifyOperation
null
if there
were none or this information is not yet available.public final Entry getModifiedEntry()
getModifiedEntry
in interface PostOperationModifyOperation
getModifiedEntry
in interface PostResponseModifyOperation
getModifiedEntry
in interface PostSynchronizationModifyOperation
getModifiedEntry
in interface PreOperationModifyOperation
null
if it is not yet available.public final List<ByteString> getNewPasswords()
getNewPasswords
in interface PostOperationModifyOperation
getNewPasswords
in interface PostResponseModifyOperation
getNewPasswords
in interface PostSynchronizationModifyOperation
getNewPasswords
in interface PreOperationModifyOperation
null
if there were none
or this information is not yet available.Copyright 2010-2020 ForgeRock AS.