/** * {@inheritDoc} */ public void delete( InternalDeleteRequest deleteRequest, LogChange log ) throws Exception { DeleteOperationContext opContext = new DeleteOperationContext( this, deleteRequest ); opContext.setLogChange( log ); OperationManager operationManager = directoryService.getOperationManager(); operationManager.delete( opContext ); deleteRequest.getResultResponse().addAll( opContext.getResponseControls() ); }
@Override public void delete( NextInterceptor next, DeleteOperationContext deleteContext ) throws Exception { Operation op = operationFactory.newDelete( deleteContext.getDn() ); op.execute( nexus, store, deleteContext.getSession() ); }
/** * {@inheritDoc} */ public void delete( DN dn, LogChange log ) throws Exception { DeleteOperationContext opContext = new DeleteOperationContext( this, dn ); opContext.setLogChange( log ); OperationManager operationManager = directoryService.getOperationManager(); operationManager.delete( opContext ); }
nexus.delete( new DeleteOperationContext( coreSession, normalizedName ) ); return; nexus.delete( new DeleteOperationContext( coreSession, normalizedName ) );
/** * {@inheritDoc} */ public void delete( DeleteOperationContext opContext ) throws Exception { DN dn = opContext.getDn(); ID id = getEntryId( dn.getNormName() ); // don't continue if id is null if ( id == null ) { throw new LdapNoSuchObjectException( I18n.err( I18n.ERR_699, dn ) ); } if ( getChildCount( id ) > 0 ) { LdapContextNotEmptyException cnee = new LdapContextNotEmptyException( I18n.err( I18n.ERR_700, dn ) ); //cnee.setRemainingName( dn ); throw cnee; } delete( id ); }
/** * {@inheritDoc} */ public void delete( DN dn, boolean ignoreReferral, LogChange log ) throws Exception { DeleteOperationContext opContext = new DeleteOperationContext( this, dn ); opContext.setLogChange( log ); setReferralHandling( opContext, ignoreReferral ); OperationManager operationManager = directoryService.getOperationManager(); operationManager.delete( opContext ); }
ServerEntry entry = nexus.lookup( new LookupOperationContext( adminSession, name ) ); LOG.info( "[Replica-{}] Purge: " + name + " (" + entry + ')', configuration.getReplicaId() ); nexus.delete( new DeleteOperationContext( adminSession, name ) );