}
return;
}
LdifEntry forward = new LdifEntry();
forward.setChangeType( ChangeType.Modify );
forward.setDn( opContext.getDn() );
List<Modification> mods = new ArrayList<Modification>( clonedMods.size() );
for ( Modification modItem : clonedMods )
{
Modification mod = ((ServerModification)modItem).toClientModification();
// TODO: handle correctly http://issues.apache.org/jira/browse/DIRSERVER-1198
mod.getAttribute().setId( modItem.getAttribute().getId() );
mods.add( mod );
forward.addModificationItem( mod );
}
Entry clientEntry = new DefaultClientEntry( serverEntry.getDn() );
for ( EntryAttribute attribute:serverEntry )
{
clientEntry.add( attribute.toClientAttribute() );
}
LdifEntry reverse = LdifRevertor.reverseModify(
opContext.getDn(),
mods,
clientEntry );
opContext.setChangeLogEvent( changeLog.log( getPrincipal(), forward, reverse ) );