master.put( entry, id );
public void modify( LdapDN dn, ModificationItemImpl[] mods ) throws NamingException { BigInteger id = getEntryId( dn.toString() ); Attributes entry = master.get( id ); for ( int ii = 0; ii < mods.length; ii++ ) { Attribute attrMods = mods[ii].getAttribute(); switch ( mods[ii].getModificationOp() ) { case ( DirContext.ADD_ATTRIBUTE ): add( id, entry, attrMods ); break; case ( DirContext.REMOVE_ATTRIBUTE ): remove( id, entry, attrMods ); break; case ( DirContext.REPLACE_ATTRIBUTE ): replace( id, entry, attrMods ); break; default: throw new NamingException( "Unidentified modification operation" ); } } master.put( entry, id ); if ( cfg.isSynchOnWrite() ) { sync(); } }
master.put( entry, id );