/** * {@inheritDoc} */ public void add( InternalAddRequest addRequest, LogChange log ) throws Exception { AddOperationContext opContext = new AddOperationContext( this, addRequest ); opContext.setLogChange( log ); OperationManager operationManager = directoryService.getOperationManager(); operationManager.add( opContext ); addRequest.getResultResponse().addAll( opContext.getResponseControls() ); }
public void add( NextInterceptor nextInterceptor, AddOperationContext addContext ) throws Exception { Operation op = operationFactory.newAdd( addContext.getDn(), addContext.getEntry() ); op.execute( nexus, store, addContext.getSession() ); }
/** * {@inheritDoc} */ public void add( ServerEntry entry, LogChange log ) throws Exception { AddOperationContext opContext = new AddOperationContext( this, entry ); opContext.setLogChange( log ); OperationManager operationManager = directoryService.getOperationManager(); operationManager.add( opContext ); }
partition.add( new AddOperationContext( null, attrs ) ); load();
public final void add( AddOperationContext addContext ) throws Exception { store.add( ( ServerEntry ) ( ( ClonedServerEntry ) addContext.getEntry() ).getClonedEntry() ); }
/** * {@inheritDoc} */ public void add( ServerEntry entry, boolean ignoreReferral, LogChange log ) throws Exception { AddOperationContext opContext = new AddOperationContext( this, entry ); opContext.setLogChange( log ); setReferralHandling( opContext, ignoreReferral ); OperationManager operationManager = directoryService.getOperationManager(); operationManager.add( opContext ); }
/** * Inject the entry into the local server * * @param nexus the local partition to update * @param store not used... Just for inheritence sake. * @param coreSession the current session */ protected void execute0( PartitionNexus nexus, ReplicationStore store, CoreSession coreSession ) throws Exception { if ( ! EntryUtil.isEntryUpdatable( coreSession, entry.getDn(), getCSN() ) ) { return; } EntryUtil.createGlueEntries( coreSession, entry.getDn(), false ); // Replace the entry if an entry with the same name exists. if ( nexus.lookup( new LookupOperationContext( coreSession, entry.getDn() ) ) != null ) { recursiveDelete( nexus, entry.getDn(), coreSession ); } nexus.add( new AddOperationContext( coreSession, (ServerEntry)entry ) ); }
nexus.add( new AddOperationContext( coreSession, entry ) );