Class DeleteOperationBasis

    • Constructor Detail

      • DeleteOperationBasis

        public DeleteOperationBasis​(ClientConnection clientConnection,
                                    long operationID,
                                    int messageID,
                                    List<Control> requestControls,
                                    ByteString rawEntryDN)
        Creates a new delete operation with the provided information.
        Parameters:
        clientConnection - The client connection with which this operation is associated.
        operationID - The operation ID for this operation.
        messageID - The message ID of the request with which this operation is associated.
        requestControls - The set of controls included in the request.
        rawEntryDN - The raw, unprocessed DN of the entry to delete, as included in the client request.
      • DeleteOperationBasis

        public DeleteOperationBasis​(ClientConnection clientConnection,
                                    long operationID,
                                    int messageID,
                                    List<Control> requestControls,
                                    DN entryDN)
        Creates a new delete operation with the provided information.
        Parameters:
        clientConnection - The client connection with which this operation is associated.
        operationID - The operation ID for this operation.
        messageID - The message ID of the request with which this operation is associated.
        requestControls - The set of controls included in the request.
        entryDN - The entry DN for this delete operation.
    • Method Detail

      • getEntryDN

        public final DN getEntryDN()
        Description copied from interface: DeleteOperation
        Retrieves the DN of the entry to delete. This should not be called by pre-parse plugins because the processed DN will not be available yet. Instead, they should call the getRawEntryDN method.
        Specified by:
        getEntryDN in interface DeleteOperation
        Specified by:
        getEntryDN in interface PostResponseDeleteOperation
        Returns:
        The DN of the entry to delete, or null if the raw entry DN has not yet been processed.
      • getProxiedAuthorizationDN

        public DN getProxiedAuthorizationDN()
        Description copied from interface: DeleteOperation
        Retrieves the proxied authorization DN for this operation if proxied authorization has been requested.
        Specified by:
        getProxiedAuthorizationDN in interface DeleteOperation
        Specified by:
        getProxiedAuthorizationDN in interface Operation
        Returns:
        The proxied authorization DN for this operation if proxied authorization has been requested, or null if proxied authorization has not been requested.
      • addResponseControl

        public final void addResponseControl​(Control control)
        Description copied from interface: PreParseOperation
        Adds the provided control to the set of controls to include in the response to the client.
        Specified by:
        addResponseControl in interface Operation
        Specified by:
        addResponseControl in interface PreParseOperation
        Parameters:
        control - The control to add to the set of controls to include in the response to the client.
      • removeResponseControl

        public final void removeResponseControl​(Control control)
        Description copied from interface: PreParseOperation
        Removes the provided control from the set of controls to include in the response to the client.
        Specified by:
        removeResponseControl in interface Operation
        Specified by:
        removeResponseControl in interface PreParseOperation
        Parameters:
        control - The control to remove from the set of controls to include in the response to the client.
      • toString

        public final void toString​(StringBuilder buffer)
        Description copied from interface: PluginOperation
        Appends a string representation of this operation to the provided buffer.
        Specified by:
        toString in interface Operation
        Specified by:
        toString in interface PluginOperation
        Parameters:
        buffer - The buffer into which a string representation of this operation should be appended.
      • setProxiedAuthorizationDN

        public void setProxiedAuthorizationDN​(DN proxiedAuthorizationDN)
        Description copied from interface: DeleteOperation
        Set the proxied authorization DN for this operation if proxied authorization has been requested.
        Specified by:
        setProxiedAuthorizationDN in interface DeleteOperation
        Specified by:
        setProxiedAuthorizationDN in interface Operation
        Parameters:
        proxiedAuthorizationDN - The proxied authorization DN for this operation if proxied authorization has been requested, or null if proxied authorization has not been requested.
      • run

        public final void run()
        Description copied from interface: Operation
        Performs the work of actually processing this operation. This should include all processing for the operation, including invoking pre-parse and post-response plugins, logging messages and any other work that might need to be done in the course of processing.
        Specified by:
        run in interface Operation
        Specified by:
        run in interface Runnable
      • updateOperationErrMsgAndResCode

        public void updateOperationErrMsgAndResCode()
        Description copied from class: AbstractOperation
        Updates the error message and the result code of the operation. This method is called because no workflows were found to process the operation.
        Overrides:
        updateOperationErrMsgAndResCode in class AbstractOperation