Package org.ldaptive
Class AddOperation
- java.lang.Object
-
- org.ldaptive.AbstractOperation<AddRequest,AddResponse>
-
- org.ldaptive.AddOperation
-
- All Implemented Interfaces:
Operation<AddRequest,AddResponse>
public class AddOperation extends AbstractOperation<AddRequest,AddResponse>
Executes an ldap add operation.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AddOperation.Builder
Add operation builder.-
Nested classes/interfaces inherited from class org.ldaptive.AbstractOperation
AbstractOperation.AbstractBuilder<B,T extends AbstractOperation>
-
-
Constructor Summary
Constructors Constructor Description AddOperation()
Default constructor.AddOperation(ConnectionFactory factory)
Creates a new add operation.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AddOperation.Builder
builder()
Creates a builder for this class.static AddOperation
copy(AddOperation operation)
Returns a new add operation with the same properties as the supplied operation.static AddOperation
copy(AddOperation operation, boolean deep)
Returns a new add operation with the same properties as the supplied operation.AddResponse
execute(AddRequest request)
Executes an add request.static AddResponse
execute(ConnectionFactory factory, AddRequest request)
Executes an add request.OperationHandle<AddRequest,AddResponse>
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 Detail
-
AddOperation
public AddOperation()
Default constructor.
-
AddOperation
public AddOperation(ConnectionFactory factory)
Creates a new add operation.- Parameters:
factory
- connection factory
-
-
Method Detail
-
send
public OperationHandle<AddRequest,AddResponse> send(AddRequest request) throws LdapException
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
public AddResponse execute(AddRequest request) throws LdapException
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
public static AddOperation copy(AddOperation operation)
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
public static AddOperation copy(AddOperation operation, boolean deep)
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
public static AddOperation.Builder builder()
Creates a builder for this class.- Returns:
- new builder
-
-