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