/** * {@inheritDoc} */ @Override public boolean compare( CompareRequest compareRequest ) throws LdapException { CompareOperationContext compareContext = new CompareOperationContext( this, compareRequest ); OperationManager operationManager = directoryService.getOperationManager(); boolean result = false; try { result = operationManager.compare( compareContext ); } catch ( LdapException e ) { compareRequest.getResultResponse().addAllControls( compareContext.getResponseControls() ); throw e; } compareRequest.getResultResponse().addAllControls( compareContext.getResponseControls() ); return result; }
/** * {@inheritDoc} */ @Override public void delete( DeleteRequest deleteRequest, LogChange log ) throws LdapException { DeleteOperationContext deleteContext = new DeleteOperationContext( this, deleteRequest ); deleteContext.setLogChange( log ); OperationManager operationManager = directoryService.getOperationManager(); try { operationManager.delete( deleteContext ); } catch ( LdapException e ) { deleteRequest.getResultResponse().addAllControls( deleteContext.getResponseControls() ); throw e; } deleteRequest.getResultResponse().addAllControls( deleteContext.getResponseControls() ); }
/** * {@inheritDoc} */ @Override public void move( ModifyDnRequest modifyDnRequest, LogChange log ) throws LdapException { MoveOperationContext moveContext = new MoveOperationContext( this, modifyDnRequest ); moveContext.setLogChange( log ); OperationManager operationManager = directoryService.getOperationManager(); try { operationManager.move( moveContext ); } catch ( LdapException e ) { modifyDnRequest.getResultResponse().addAllControls( moveContext.getResponseControls() ); throw e; } modifyDnRequest.getResultResponse().addAllControls( moveContext.getResponseControls() ); }
/** * {@inheritDoc} */ @Override public void moveAndRename( ModifyDnRequest modifyDnRequest, LogChange log ) throws LdapException { MoveAndRenameOperationContext moveAndRenameContext = new MoveAndRenameOperationContext( this, modifyDnRequest ); moveAndRenameContext.setLogChange( log ); OperationManager operationManager = directoryService.getOperationManager(); try { operationManager.moveAndRename( moveAndRenameContext ); } catch ( LdapException e ) { modifyDnRequest.getResultResponse().addAllControls( moveAndRenameContext.getResponseControls() ); throw e; } modifyDnRequest.getResultResponse().addAllControls( moveAndRenameContext.getResponseControls() ); }
/** * {@inheritDoc} */ @Override public void add( AddRequest addRequest, LogChange log ) throws LdapException { AddOperationContext addContext = new AddOperationContext( this, addRequest ); addContext.setLogChange( log ); OperationManager operationManager = directoryService.getOperationManager(); try { operationManager.add( addContext ); } catch ( LdapException e ) { addRequest.getResultResponse().addAllControls( addContext.getResponseControls() ); throw e; } addRequest.getResultResponse().addAllControls( addContext.getResponseControls() ); }
/** * {@inheritDoc} */ @Override public void modify( ModifyRequest modifyRequest, LogChange log ) throws LdapException { ModifyOperationContext modifyContext = new ModifyOperationContext( this, modifyRequest ); modifyContext.setLogChange( log ); OperationManager operationManager = directoryService.getOperationManager(); try { operationManager.modify( modifyContext ); } catch ( LdapException e ) { modifyRequest.getResultResponse().addAllControls( modifyContext.getResponseControls() ); throw e; } modifyRequest.getResultResponse().addAllControls( modifyContext.getResponseControls() ); }
/** * {@inheritDoc} */ @Override public void rename( ModifyDnRequest modifyDnRequest, LogChange log ) throws LdapException { RenameOperationContext renameContext = new RenameOperationContext( this, modifyDnRequest ); renameContext.setLogChange( log ); OperationManager operationManager = directoryService.getOperationManager(); try { operationManager.rename( renameContext ); } catch ( LdapException e ) { modifyDnRequest.getResultResponse().addAllControls( renameContext.getResponseControls() ); throw e; } modifyDnRequest.getResultResponse().addAllControls( renameContext.getResponseControls() ); }
done.addAllControls( searchContext.getResponseControls() ); throw e; done.addAllControls( searchContext.getResponseControls() ); throw new LdapException( e ); done.addAllControls( searchContext.getResponseControls() );
bindRequest.getResultResponse().addAllControls( bindContext.getResponseControls() ); sendBindSuccess( ldapSession, bindRequest, null ); bindRequest.getResultResponse().addAllControls( bindContext.getResponseControls() );