| | |
| | | } |
| | | |
| | | // Get the parent DN and ensure that it exists in the backend. |
| | | DN parentDN = DirectoryServer.getParentDNInSuffix(entryDN); |
| | | DN parentDN = serverContext.getBackendConfigManager().getParentDNInSuffix(entryDN); |
| | | if (parentDN == null) |
| | | { |
| | | throw new DirectoryException(ResultCode.NO_SUCH_OBJECT, |
| | |
| | | childDNs.remove(entryDN); |
| | | entryMap.remove(entryDN); |
| | | |
| | | DN parentDN = DirectoryServer.getParentDNInSuffix(entryDN); |
| | | DN parentDN = serverContext.getBackendConfigManager().getParentDNInSuffix(entryDN); |
| | | if (parentDN != null) |
| | | { |
| | | HashSet<DN> parentsChildren = childDNs.get(parentDN); |
| | |
| | | } |
| | | |
| | | // Make sure that the parent of the new entry exists. |
| | | DN parentDN = DirectoryServer.getParentDNInSuffix(e.getName()); |
| | | DN parentDN = serverContext.getBackendConfigManager().getParentDNInSuffix(e.getName()); |
| | | if (parentDN == null || !entryMap.containsKey(parentDN)) |
| | | { |
| | | throw new DirectoryException(ResultCode.NO_SUCH_OBJECT, |
| | |
| | | Entry baseEntry = entryMap.get(baseDN); |
| | | if (baseEntry == null && handlesEntry(baseDN)) |
| | | { |
| | | DN matchedDN = DirectoryServer.getParentDNInSuffix(baseDN); |
| | | DN matchedDN = serverContext.getBackendConfigManager().getParentDNInSuffix(baseDN); |
| | | while (matchedDN != null) |
| | | { |
| | | if (entryMap.containsKey(matchedDN)) |
| | |
| | | break; |
| | | } |
| | | |
| | | matchedDN = DirectoryServer.getParentDNInSuffix(matchedDN); |
| | | matchedDN = serverContext.getBackendConfigManager().getParentDNInSuffix(matchedDN); |
| | | } |
| | | |
| | | LocalizableMessage message = |