| | |
| | | { |
| | | // Make sure that the target entry does not already exist, but that its |
| | | // parent does exist (or that the entry being added is the base DN). |
| | | DN entryDN = entry.getDN(); |
| | | DN entryDN = entry.getName(); |
| | | if (entryMap.containsKey(entryDN)) |
| | | { |
| | | Message m = ERR_LDIF_BACKEND_ADD_ALREADY_EXISTS.get(entryDN.toString()); |
| | |
| | | try |
| | | { |
| | | // Make sure that the target entry exists. If not, then fail. |
| | | DN entryDN = newEntry.getDN(); |
| | | DN entryDN = newEntry.getName(); |
| | | if (! entryMap.containsKey(entryDN)) |
| | | { |
| | | DN matchedDN = null; |
| | |
| | | { |
| | | // Make sure that the original entry exists and that the new entry doesn't |
| | | // exist but its parent does. |
| | | DN newDN = entry.getDN(); |
| | | DN newDN = entry.getName(); |
| | | if (! entryMap.containsKey(currentDN)) |
| | | { |
| | | DN matchedDN = null; |
| | |
| | | { |
| | | for (Entry entry : entryMap.values()) |
| | | { |
| | | entryDN = entry.getDN(); |
| | | entryDN = entry.getName(); |
| | | ldifWriter.writeEntry(entry); |
| | | } |
| | | } |
| | |
| | | |
| | | // Make sure that we don't already have an entry with the same DN. If |
| | | // a duplicate is encountered, then log a message and continue. |
| | | DN entryDN = e.getDN(); |
| | | DN entryDN = e.getName(); |
| | | if (entryMap.containsKey(entryDN)) |
| | | { |
| | | Message m = ERR_LDIF_BACKEND_DUPLICATE_ENTRY.get(ldifFilePath, |