Removes the attribute with the specified AttributeTypes.
The removed attribute are returned by this method.
If there is no attribute with the specified AttributeTypes, the return value is null.
null
11791180118111821183118411851186118711881189
return; } } remoteEntry.removeAttributes( MOD_IGNORE_AT ); localEntry.removeAttributes( MOD_IGNORE_AT ); List<Modification> mods = new ArrayList<Modification>(); Iterator<Attribute> itr = localEntry.iterator(); while ( itr.hasNext() )
764765766767768769770771772773774
{ updateRdnIdx( parentId, ADD_CHILD, 0 ); } // Remove the EntryDN attribute entry.removeAttributes( ENTRY_DN_AT ); // And finally add the entry into the master table master.put( id, entry ); } finally
12041205120612071208120912101211121212131214
} updateCsnIndex( entry, id ); // Remove the EntryDN entry.removeAttributes( ENTRY_DN_AT ); master.put( id, entry ); if ( isSyncOnWrite.get() ) {
781782783784785786787788789790791
// We may have to remove the attribute or only some values if ( attribute.size() == 0 ) { // No value : we have to remove the entire attribute tempEntry.removeAttributes( attributeType ); } else { currentAttribute = tempEntry.get( attributeType );
807808809810811812813814815816817
// If the current attribute is empty, we have to remove // it from the entry if ( currentAttribute.size() == 0 ) { tempEntry.removeAttributes( attributeType ); } } break;
837838839840841842843844845846847
else { if ( attribute.size() == 0 ) { // Remove the attribute from the entry tempEntry.removeAttributes( attributeType ); } else { // Replace the existing values with the new values // This is done by removing the Attribute
843844845846847848849850851852853
} else { // Replace the existing values with the new values // This is done by removing the Attribute tempEntry.removeAttributes( attributeType ); // Create the new Attribute Attribute newAttribute = createNewAttribute( attribute ); tempEntry.put( newAttribute );
11641165116611671168116911701171117211731174
767768769770771772773774775776777
12111212121312141215121612171218121912201221