| | |
| | | DNComparator comparator = new DNComparator(); |
| | | TreeMap<DN,AddChangeRecordEntry> adds = |
| | | new TreeMap<DN,AddChangeRecordEntry>(comparator); |
| | | |
| | | TreeMap<DN,Entry> ldifEntries = |
| | | new TreeMap<DN,Entry>(comparator); |
| | | HashMap<DN,DeleteChangeRecordEntry> deletes = |
| | | new HashMap<DN,DeleteChangeRecordEntry>(); |
| | | HashMap<DN,LinkedList<Modification>> modifications = |
| | |
| | | |
| | | |
| | | // If we've gotten here, then the (possibly updated) entry should be |
| | | // written to the output LDIF. |
| | | targetWriter.writeEntry(entry); |
| | | // written to the LDIF entry Map. |
| | | ldifEntries.put(entry.getDN(),entry); |
| | | } |
| | | |
| | | |
| | |
| | | |
| | | Entry e = new Entry(add.getDN(), objectClasses, userAttributes, |
| | | operationalAttributes); |
| | | targetWriter.writeEntry(e); |
| | | //Put the entry to be added into the LDIF entry map. |
| | | ldifEntries.put(e.getDN(),e); |
| | | } |
| | | |
| | | |
| | |
| | | errorList.add(getMessage(msgID, String.valueOf(dn))); |
| | | } |
| | | } |
| | | |
| | | return errorList.isEmpty(); |
| | | return targetWriter.writeEntries(ldifEntries.values()) && |
| | | errorList.isEmpty(); |
| | | } |
| | | |
| | | |