Package org.ldaptive
Class DeleteOperation
- All Implemented Interfaces:
Operation<DeleteRequest,DeleteResponse>
Executes an ldap delete operation.
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.ldaptive.AbstractOperation
AbstractOperation.AbstractBuilder<B,T extends AbstractOperation> -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.DeleteOperation(ConnectionFactory factory) Creates a new delete operation. -
Method Summary
Modifier and TypeMethodDescriptionstatic DeleteOperation.Builderbuilder()Creates a builder for this class.static DeleteOperationcopy(DeleteOperation operation) Returns a new delete operation with the same properties as the supplied operation.static DeleteOperationcopy(DeleteOperation operation, boolean deep) Returns a new delete operation with the same properties as the supplied operation.static DeleteResponseexecute(ConnectionFactory factory, DeleteRequest request) Executes a delete request.execute(DeleteRequest request) Executes a delete request.send(ConnectionFactory factory, DeleteRequest request) Sends a delete request.send(DeleteRequest request) Sends a delete request.Methods inherited from class org.ldaptive.AbstractOperation
configureHandle, configureRequest, copy, getConnectionFactory, getControlHandlers, getExceptionHandler, getIntermediateResponseHandlers, getReferralHandlers, getReferralResultHandler, getRequestHandlers, getResultHandlers, getThrowCondition, getUnsolicitedNotificationHandlers, setConnectionFactory, setControlHandlers, setExceptionHandler, setIntermediateResponseHandlers, setReferralHandlers, setReferralResultHandler, setRequestHandlers, setResultHandlers, setThrowCondition, setUnsolicitedNotificationHandlers, toString
-
Constructor Details
-
DeleteOperation
public DeleteOperation()Default constructor. -
DeleteOperation
Creates a new delete operation.- Parameters:
factory- connection factory
-
-
Method Details
-
send
public OperationHandle<DeleteRequest,DeleteResponse> send(DeleteRequest request) throws LdapException Sends a delete request. SeeOperationHandle.send().- Parameters:
request- delete request- Returns:
- operation handle
- Throws:
LdapException- if the connection cannot be opened
-
send
public static OperationHandle<DeleteRequest,DeleteResponse> send(ConnectionFactory factory, DeleteRequest request) throws LdapException Sends a delete request. SeeOperationHandle.send().- Parameters:
factory- connection factoryrequest- delete request- Returns:
- operation handle
- Throws:
LdapException- if the connection cannot be opened
-
execute
Executes a delete request. SeeOperationHandle.execute().- Parameters:
request- delete request- Returns:
- delete result
- Throws:
LdapException- if the connection cannot be opened
-
execute
public static DeleteResponse execute(ConnectionFactory factory, DeleteRequest request) throws LdapException Executes a delete request. SeeOperationHandle.execute().- Parameters:
factory- connection factoryrequest- delete request- Returns:
- delete result
- Throws:
LdapException- if the connection cannot be opened
-
copy
Returns a new delete operation with the same properties as the supplied operation.- Parameters:
operation- to copy- Returns:
- copy of the supplied delete operation
-
copy
Returns a new delete operation with the same properties as the supplied operation.- Parameters:
operation- to copydeep- whether to make a deep copy- Returns:
- copy of the supplied delete operation
-
builder
Creates a builder for this class.- Returns:
- new builder
-