| | |
| | | import org.opends.server.protocols.internal.InternalSearchOperation ; |
| | | import org.opends.server.protocols.internal.InternalSearchListener; |
| | | |
| | | import org.opends.server.types.AbstractOperation; |
| | | import org.opends.server.types.DebugLogLevel; |
| | | import org.opends.server.types.AuthenticationInfo; |
| | | import org.opends.server.types.CancelRequest; |
| | |
| | | private ConnectionSecurityProvider securityProvider; |
| | | |
| | | // The empty operation list for this connection. |
| | | private LinkedList<Operation> operationList; |
| | | private LinkedList<AbstractOperation> operationList; |
| | | |
| | | // The connection ID for this client connection. |
| | | private long connectionID; |
| | |
| | | true, |
| | | MSGID_LDAP_CONNHANDLER_REJECTED_BY_SERVER); |
| | | } |
| | | operationList = new LinkedList<Operation>(); |
| | | operationList = new LinkedList<AbstractOperation>(); |
| | | |
| | | try |
| | | { |
| | |
| | | * @return A reference to the add operation that was processed and contains |
| | | * information about the result of the processing. |
| | | */ |
| | | public AddOperation processAdd(ASN1OctetString rawEntryDN, |
| | | public AddOperationBasis processAdd(ASN1OctetString rawEntryDN, |
| | | ArrayList<RawAttribute> rawAttributes) |
| | | { |
| | | AddOperation addOperation = |
| | | new AddOperation(this, nextOperationID(), nextMessageID(), |
| | | AddOperationBasis addOperation = |
| | | new AddOperationBasis(this, nextOperationID(), nextMessageID(), |
| | | new ArrayList<Control>(0), rawEntryDN, rawAttributes); |
| | | |
| | | addOperation.run(); |
| | |
| | | * @return A reference to the delete operation that was processed and |
| | | * contains information about the result of the processing. |
| | | */ |
| | | public DeleteOperation processDelete(ASN1OctetString rawEntryDN) |
| | | public DeleteOperationBasis processDelete(ASN1OctetString rawEntryDN) |
| | | { |
| | | DeleteOperation deleteOperation = |
| | | new DeleteOperation(this, nextOperationID(), nextMessageID(), |
| | | DeleteOperationBasis deleteOperation = |
| | | new DeleteOperationBasis(this, nextOperationID(), nextMessageID(), |
| | | new ArrayList<Control>(0), rawEntryDN); |
| | | |
| | | deleteOperation.run(); |
| | |
| | | * @return A reference to the modify operation that was processed and |
| | | * contains information about the result of the processing |
| | | */ |
| | | public ModifyOperation processModify(ASN1OctetString rawEntryDN, |
| | | public ModifyOperationBasis processModify(ASN1OctetString rawEntryDN, |
| | | ArrayList<RawModification> rawModifications) |
| | | { |
| | | ModifyOperation modifyOperation = |
| | | new ModifyOperation(this, nextOperationID(), nextMessageID(), |
| | | ModifyOperationBasis modifyOperation = |
| | | new ModifyOperationBasis(this, nextOperationID(), nextMessageID(), |
| | | new ArrayList<Control>(0), rawEntryDN, |
| | | rawModifications); |
| | | |
| | |
| | | typesOnly, filter, attributes, |
| | | searchListener); |
| | | |
| | | |
| | | |
| | | searchOperation.run(); |
| | | return searchOperation; |
| | | } |
| | |
| | | { |
| | | UnbindOperation unbindOp = new UnbindOperation((ClientConnection) this, |
| | | this.nextOperationID(), this.nextMessageID(), null); |
| | | |
| | | unbindOp.run(); |
| | | } |
| | | catch (Exception e) |
| | |
| | | * |
| | | * @return The set of operations in progress for this client connection. |
| | | */ |
| | | public Collection<Operation> getOperationsInProgress() |
| | | public Collection<AbstractOperation> getOperationsInProgress() |
| | | { |
| | | return operationList; |
| | | } |
| | |
| | | * @return The operation in progress with the specified message ID, or |
| | | * <CODE>null</CODE> if no such operation could be found. |
| | | */ |
| | | public Operation getOperationInProgress(int messageID) |
| | | public AbstractOperation getOperationInProgress(int messageID) |
| | | { |
| | | // Jmx operations will not be tracked. |
| | | return null; |