/** * Executes a {@link DeleteOperation} for the supplied entry. * * @param request merge request * @param entry to delete from the LDAP * * @return response of the delete operation * * @throws LdapException if an error occurs executing the deleting operation */ protected Response<Void> delete(final MergeRequest request, final LdapEntry entry) throws LdapException { Response<Void> response; final DeleteOperation delete = new DeleteOperation(getConnection()); response = delete.execute(new DeleteRequest(entry.getDn())); logger.info("delete entry {} for request {}", entry, request); return response; } }
/** * Executes a {@link DeleteOperation} for the supplied entry. * * @param request merge request * @param entry to delete from the LDAP * * @return response of the delete operation * * @throws LdapException if an error occurs executing the deleting operation */ protected Response<Void> delete(final MergeRequest request, final LdapEntry entry) throws LdapException { final Response<Void> response; final DeleteOperation delete = new DeleteOperation(getConnection()); response = delete.execute(new DeleteRequest(entry.getDn())); logger.info("delete entry {} for request {}", entry, request); return response; } }
/** * Executes a {@link DeleteOperation} for the supplied entry. * * @param request merge request * @param entry to delete from the LDAP * * @return response of the delete operation * * @throws LdapException if an error occurs executing the deleting operation */ protected Response<Void> delete(final MergeRequest request, final LdapEntry entry) throws LdapException { final Response<Void> response; final DeleteOperation delete = new DeleteOperation(getConnection()); response = delete.execute(new DeleteRequest(entry.getDn())); logger.info("delete entry {} for request {}", entry, request); return response; } }
/** * Executes an {@link AddOperation} for the supplied entry. * * @param request merge request * @param entry to add to the LDAP * * @return response of the add operation * * @throws LdapException if an error occurs executing the add operation */ protected Response<Void> add(final MergeRequest request, final LdapEntry entry) throws LdapException { final Response<Void> response; final AddOperation add = new AddOperation(getConnection()); response = add.execute(new AddRequest(entry.getDn(), entry.getAttributes())); logger.info("added entry {} for request {}", entry, request); return response; }
/** * Executes an {@link AddOperation} for the supplied entry. * * @param request merge request * @param entry to add to the LDAP * * @return response of the add operation * * @throws LdapException if an error occurs executing the add operation */ protected Response<Void> add(final MergeRequest request, final LdapEntry entry) throws LdapException { Response<Void> response; final AddOperation add = new AddOperation(getConnection()); response = add.execute(new AddRequest(entry.getDn(), entry.getAttributes())); logger.info("added entry {} for request {}", entry, request); return response; }
request); final ModifyOperation modify = new ModifyOperation(getConnection()); response = modify.execute( new ModifyRequest(
/** * Executes an {@link AddOperation} for the supplied entry. * * @param request merge request * @param entry to add to the LDAP * * @return response of the add operation * * @throws LdapException if an error occurs executing the add operation */ protected Response<Void> add(final MergeRequest request, final LdapEntry entry) throws LdapException { final Response<Void> response; final AddOperation add = new AddOperation(getConnection()); response = add.execute(new AddRequest(entry.getDn(), entry.getAttributes())); logger.info("added entry {} for request {}", entry, request); return response; }
request); final ModifyOperation modify = new ModifyOperation(getConnection()); response = modify.execute( new ModifyRequest(
request); final ModifyOperation modify = new ModifyOperation(getConnection()); response = modify.execute( new ModifyRequest(
final SearchOperation search = new SearchOperation(getConnection()); searchResponse = search.execute( SearchRequest.newObjectScopeSearchRequest(sourceEntry.getDn(), request.getSearchAttributes()));
final SearchOperation search = new SearchOperation(getConnection()); searchResponse = search.execute( SearchRequest.newObjectScopeSearchRequest(sourceEntry.getDn(), request.getSearchAttributes()));
final SearchOperation search = new SearchOperation(getConnection()); searchResponse = search.execute( SearchRequest.newObjectScopeSearchRequest(sourceEntry.getDn(), request.getSearchAttributes()));