public void move( LdapDN oldChildDn, LdapDN newParentDn ) throws NamingException { BigInteger childId = getEntryId( oldChildDn.toString() ); move( oldChildDn, childId, newParentDn ); if ( cfg.isSynchOnWrite() ) { sync(); } }
public void move( LdapDN oldChildDn, LdapDN newParentDn, String newRdn, boolean deleteOldRdn ) throws NamingException { BigInteger childId = getEntryId( oldChildDn.toString() ); modifyRn( oldChildDn, newRdn, deleteOldRdn ); move( oldChildDn, childId, newParentDn ); if ( cfg.isSynchOnWrite() ) { sync(); } }
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(); } }