public void add(NextInterceptor next, LdapDN normName, Attributes entry) throws NamingException { nexus.add( normName, entry ); }
/** * @see javax.naming.Context#createSubcontext(javax.naming.Name) */ public Context createSubcontext( Name name ) throws NamingException { Attributes attributes = new LockableAttributesImpl(); LdapDN target = buildTarget( name ); injectRdnAttributeValues( target, attributes ); attributes.put( JavaLdapSupport.OBJECTCLASS_ATTR, JavaLdapSupport.JCONTAINER_ATTR ); attributes.put( JavaLdapSupport.OBJECTCLASS_ATTR, JavaLdapSupport.TOP_ATTR ); /* * Add the new context to the server which as a side effect adds * operational attributes to the attributes refering instance which * can them be used to initialize a new ServerLdapContext. Remember * we need to copy over the controls as well to propagate the complete * environment besides whats in the hashtable for env. */ nexusProxy.add(target, attributes ); return new ServerLdapContext( service, principal, target ); }
getNexusProxy().add( target, attributes );
/** * 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 ) );