org.opends.server.workflowelement.localbackend
Class LocalBackendAddOperation

java.lang.Object
  extended by org.opends.server.core.OperationWrapper
      extended by org.opends.server.core.AddOperationWrapper
          extended by org.opends.server.workflowelement.localbackend.LocalBackendAddOperation
All Implemented Interfaces:
AddOperation, Operation, PluginOperation, PostOperationAddOperation, PostOperationOperation, PostResponseAddOperation, PostResponseOperation, PostSynchronizationAddOperation, PostSynchronizationOperation, PreOperationAddOperation, PreOperationOperation

public class LocalBackendAddOperation
extends AddOperationWrapper
implements PreOperationAddOperation, PostOperationAddOperation, PostResponseAddOperation, PostSynchronizationAddOperation

This class defines an operation used to add an entry in a local backend of the Directory Server.


Field Summary
 
Fields inherited from interface org.opends.server.types.Operation
LOCALBACKENDOPERATIONS
 
Constructor Summary
LocalBackendAddOperation(AddOperation add)
          Creates a new operation that may be used to add a new entry in a local backend of the Directory Server.
 
Method Summary
 void addObjectClassChain(ObjectClass objectClass)
          Adds the provided objectClass to the entry, along with its superior classes if appropriate.
 Entry getEntryToAdd()
          Retrieves the entry to be added to the server.
 void handlePasswordPolicy()
          Performs all password policy processing necessary for the provided add operation.
 
Methods inherited from class org.opends.server.core.AddOperationWrapper
addObjectClass, addRawAttribute, getChangeNumber, getEntryDN, getObjectClasses, getOperationalAttributes, getProxiedAuthorizationDN, getRawAttributes, getRawEntryDN, getUserAttributes, removeAttribute, removeObjectClass, setAttribute, setChangeNumber, setProxiedAuthorizationDN, setRawAttributes, setRawEntryDN, toString
 
Methods inherited from class org.opends.server.core.OperationWrapper
abort, addRequestControl, addResponseControl, appendAdditionalLogMessage, appendErrorMessage, cancel, checkIfCanceled, disconnectClient, dontSynchronize, getAdditionalLogMessage, getAttachment, getAttachments, getAuthorizationDN, getAuthorizationEntry, getCancelRequest, getCancelResult, getClientConnection, getCommonLogElements, getConnectionID, getErrorMessage, getMatchedDN, getMessageID, getOperationID, getOperationType, getProcessingNanoTime, getProcessingStartTime, getProcessingStopTime, getProcessingTime, getReferralURLs, getRequestControls, getRequestLogElements, getResponseControls, getResponseLogElements, getResultCode, isInternalOperation, isSynchronizationOperation, operationCompleted, removeAttachment, removeRequestControl, removeResponseControl, setAdditionalLogMessage, setAttachment, setAttachments, setAuthorizationEntry, setDontSynchronize, setErrorMessage, setInternalOperation, setMatchedDN, setReferralURLs, setResponseData, setResultCode, setSynchronizationOperation, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.opends.server.types.operation.PreOperationAddOperation
addObjectClass, getEntryDN, getObjectClasses, getOperationalAttributes, getRawAttributes, getRawEntryDN, getUserAttributes, removeAttribute, removeObjectClass, setAttribute
 
Methods inherited from interface org.opends.server.types.operation.PreOperationOperation
addResponseControl, appendAdditionalLogMessage, appendErrorMessage, getAdditionalLogMessage, getAuthorizationDN, getErrorMessage, removeResponseControl, setAdditionalLogMessage, setErrorMessage
 
Methods inherited from interface org.opends.server.types.operation.PostOperationAddOperation
getEntryDN, getObjectClasses, getOperationalAttributes, getRawAttributes, getRawEntryDN, getUserAttributes
 
Methods inherited from interface org.opends.server.types.operation.PostOperationOperation
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.PostResponseAddOperation
getEntryDN, getObjectClasses, getOperationalAttributes, getRawAttributes, getRawEntryDN, getUserAttributes
 
Methods inherited from interface org.opends.server.types.operation.PostResponseOperation
getAdditionalLogMessage, getAuthorizationDN, getErrorMessage, getMatchedDN, getProcessingStopTime, getProcessingTime, getReferralURLs, getResultCode
 
Methods inherited from interface org.opends.server.types.operation.PostSynchronizationAddOperation
getEntryDN, getObjectClasses, getOperationalAttributes, getRawAttributes, getRawEntryDN, getUserAttributes
 
Methods inherited from interface org.opends.server.types.operation.PostSynchronizationOperation
getAdditionalLogMessage, getAuthorizationDN, getErrorMessage, getMatchedDN, getProcessingStopTime, getProcessingTime, getReferralURLs, getResultCode
 
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
 
Methods inherited from interface org.opends.server.types.Operation
abort, addRequestControl, addResponseControl, appendAdditionalLogMessage, appendErrorMessage, cancel, checkIfCanceled, disconnectClient, dontSynchronize, getAdditionalLogMessage, getAttachment, getAttachments, getAuthorizationDN, getAuthorizationEntry, getCancelRequest, getCancelResult, getClientConnection, getCommonLogElements, getConnectionID, getErrorMessage, getMatchedDN, getMessageID, getOperationID, getOperationType, getProcessingNanoTime, getProcessingStartTime, getProcessingStopTime, getProcessingTime, getReferralURLs, getRequestControls, getRequestLogElements, getResponseControls, getResponseLogElements, getResultCode, isInternalOperation, isSynchronizationOperation, operationCompleted, removeAttachment, removeRequestControl, removeResponseControl, setAdditionalLogMessage, setAttachment, setAttachments, setAuthorizationEntry, setDontSynchronize, setErrorMessage, setInternalOperation, setMatchedDN, setReferralURLs, setResponseData, setResultCode, setSynchronizationOperation, toString
 

Constructor Detail

LocalBackendAddOperation

public LocalBackendAddOperation(AddOperation add)
Creates a new operation that may be used to add a new entry in a local backend of the Directory Server.

Parameters:
add - The operation to enhance.
Method Detail

getEntryToAdd

public final Entry getEntryToAdd()
Retrieves the entry to be added to the server. Note that this will not be available to pre-parse plugins or during the conflict resolution portion of the synchronization processing.

Specified by:
getEntryToAdd in interface PostOperationAddOperation
Specified by:
getEntryToAdd in interface PostResponseAddOperation
Specified by:
getEntryToAdd in interface PostSynchronizationAddOperation
Specified by:
getEntryToAdd in interface PreOperationAddOperation
Returns:
The entry to be added to the server, or null if it is not yet available.

addObjectClassChain

public final void addObjectClassChain(ObjectClass objectClass)
Adds the provided objectClass to the entry, along with its superior classes if appropriate.

Parameters:
objectClass - The objectclass to add to the entry.

handlePasswordPolicy

public final void handlePasswordPolicy()
                                throws DirectoryException
Performs all password policy processing necessary for the provided add operation.

Throws:
DirectoryException - If a problem occurs while performing password policy processing for the add operation.