Package org.ldaptive
Class AddOperation
- All Implemented Interfaces:
Operation<AddRequest,AddResponse>
Executes an ldap add operation.
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.ldaptive.AbstractOperation
AbstractOperation.AbstractBuilder<B,T extends AbstractOperation> -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.AddOperation(ConnectionFactory factory) Creates a new add operation. -
Method Summary
Modifier and TypeMethodDescriptionstatic AddOperation.Builderbuilder()Creates a builder for this class.static AddOperationcopy(AddOperation operation) Returns a new add operation with the same properties as the supplied operation.static AddOperationcopy(AddOperation operation, boolean deep) Returns a new add operation with the same properties as the supplied operation.execute(AddRequest request) Executes an add request.static AddResponseexecute(ConnectionFactory factory, AddRequest request) Executes an add request.send(AddRequest request) Sends an add request.static OperationHandle<AddRequest,AddResponse> send(ConnectionFactory factory, AddRequest request) Sends an add 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
-
AddOperation
public AddOperation()Default constructor. -
AddOperation
Creates a new add operation.- Parameters:
factory- connection factory
-
-
Method Details
-
send
Sends an add request. SeeOperationHandle.send().- Parameters:
request- add request- Returns:
- operation handle
- Throws:
LdapException- if the connection cannot be opened
-
send
public static OperationHandle<AddRequest,AddResponse> send(ConnectionFactory factory, AddRequest request) throws LdapException Sends an add request. SeeOperationHandle.send().- Parameters:
factory- connection factoryrequest- add request- Returns:
- operation handle
- Throws:
LdapException- if the connection cannot be opened
-
execute
Executes an add request. SeeOperationHandle.execute().- Parameters:
request- add request- Returns:
- add result
- Throws:
LdapException- if the connection cannot be opened
-
execute
public static AddResponse execute(ConnectionFactory factory, AddRequest request) throws LdapException Executes an add request. SeeOperationHandle.execute().- Parameters:
factory- connection factoryrequest- add request- Returns:
- add result
- Throws:
LdapException- if the connection cannot be opened
-
copy
Returns a new add operation with the same properties as the supplied operation.- Parameters:
operation- to copy- Returns:
- copy of the supplied add operation
-
copy
Returns a new add operation with the same properties as the supplied operation.- Parameters:
operation- to copydeep- whether to make a deep copy- Returns:
- copy of the supplied add operation
-
builder
Creates a builder for this class.- Returns:
- new builder
-