| | |
| | | |
| | | |
| | | // Get the parent DN and ensure that it exists in the backend. |
| | | DN parentDN = entryDN.getParent(); |
| | | DN parentDN = entryDN.getParentDNInSuffix(); |
| | | if (parentDN == null) |
| | | { |
| | | int msgID = MSGID_MEMORYBACKEND_ENTRY_DOESNT_BELONG; |
| | |
| | | childDNs.remove(entryDN); |
| | | entryMap.remove(entryDN); |
| | | |
| | | DN parentDN = entryDN.getParent(); |
| | | DN parentDN = entryDN.getParentDNInSuffix(); |
| | | if (parentDN != null) |
| | | { |
| | | HashSet<DN> parentsChildren = childDNs.get(parentDN); |
| | |
| | | |
| | | |
| | | // Make sure that the parent of the new entry exists. |
| | | DN parentDN = entry.getDN().getParent(); |
| | | DN parentDN = entry.getDN().getParentDNInSuffix(); |
| | | if ((parentDN == null) || (! entryMap.containsKey(parentDN))) |
| | | { |
| | | int msgID = MSGID_MEMORYBACKEND_RENAME_PARENT_DOESNT_EXIST; |