|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ldaptive.AbstractOperation<MergeRequest,Void>
org.ldaptive.ext.MergeOperation
public class MergeOperation
The merge operation performs the LDAP operations necessary to synchronize the
data in an LdapEntry with it's corresponding entry in the LDAP. The
following logic is executed:
LdapEntry.computeModifications(LdapEntry, LdapEntry) is used to
determine the list of attribute modifications that are necessary to perform
the merge. Either MergeRequest.getIncludeAttributes() or MergeRequest.getExcludeAttributes() will be used, but not both.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.ldaptive.AbstractOperation |
|---|
AbstractOperation.ReopenOperationExceptionHandler |
| Field Summary |
|---|
| Fields inherited from class org.ldaptive.AbstractOperation |
|---|
logger |
| Constructor Summary | |
|---|---|
MergeOperation(Connection conn)
Creates a new merge operation. |
|
| Method Summary | |
|---|---|
protected Response<Void> |
add(MergeRequest request,
LdapEntry entry)
Executes an AddOperation for the supplied entry. |
protected Response<Void> |
delete(MergeRequest request,
LdapEntry entry)
Executes a DeleteOperation for the supplied entry. |
protected Response<Void> |
invoke(MergeRequest request)
Executes the ldap operation necessary to perform a merge. |
protected Response<Void> |
modify(MergeRequest request,
LdapEntry source,
LdapEntry target)
Retrieves the attribute modifications from LdapEntry.computeModifications(LdapEntry, LdapEntry) and executes a ModifyOperation with those results. |
| Methods inherited from class org.ldaptive.AbstractOperation |
|---|
execute, executeHandlers, getConnection, getOperationExceptionHandler, getOperationResponseHandlers, setOperationExceptionHandler, setOperationResponseHandlers, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public MergeOperation(Connection conn)
conn - connection| Method Detail |
|---|
protected Response<Void> invoke(MergeRequest request)
throws LdapException
AddOperation, ModifyOperation, or DeleteOperation.
invoke in class AbstractOperation<MergeRequest,Void>request - merge request
LdapException - if the invocation fails
protected Response<Void> modify(MergeRequest request,
LdapEntry source,
LdapEntry target)
throws LdapException
LdapEntry.computeModifications(LdapEntry, LdapEntry) and executes a ModifyOperation with those results. If no modifications are necessary, no
operation is performed.
request - merge requestsource - ldap entry to merge into the LDAPtarget - ldap entry that exists in the LDAP
LdapException - if an error occurs executing the modify operation
protected Response<Void> add(MergeRequest request,
LdapEntry entry)
throws LdapException
AddOperation for the supplied entry.
request - merge requestentry - to add to the LDAP
LdapException - if an error occurs executing the add operation
protected Response<Void> delete(MergeRequest request,
LdapEntry entry)
throws LdapException
DeleteOperation for the supplied entry.
request - merge requestentry - to delete from the LDAP
LdapException - if an error occurs executing the deleting operation
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||