| | |
| | | import org.forgerock.opendj.ldap.ConditionResult; |
| | | import org.forgerock.opendj.ldap.ResultCode; |
| | | import org.forgerock.opendj.ldap.SearchScope; |
| | | import org.forgerock.opendj.ldap.schema.AttributeType; |
| | | import org.opends.server.admin.std.server.MemoryBackendCfg; |
| | | import org.opends.server.api.Backend; |
| | | import org.opends.server.controls.SubtreeDeleteControl; |
| | |
| | | import org.opends.server.core.ModifyOperation; |
| | | import org.opends.server.core.SearchOperation; |
| | | import org.opends.server.core.ServerContext; |
| | | import org.forgerock.opendj.ldap.schema.AttributeType; |
| | | import org.opends.server.types.BackupConfig; |
| | | import org.opends.server.types.BackupDirectory; |
| | | import org.opends.server.types.Control; |
| | |
| | | |
| | | |
| | | // Get the parent DN and ensure that it exists in the backend. |
| | | DN parentDN = entryDN.getParentDNInSuffix(); |
| | | DN parentDN = DirectoryServer.getParentDNInSuffix(entryDN); |
| | | if (parentDN == null) |
| | | { |
| | | throw new DirectoryException(ResultCode.NO_SUCH_OBJECT, |
| | |
| | | childDNs.remove(entryDN); |
| | | entryMap.remove(entryDN); |
| | | |
| | | DN parentDN = entryDN.getParentDNInSuffix(); |
| | | DN parentDN = DirectoryServer.getParentDNInSuffix(entryDN); |
| | | if (parentDN != null) |
| | | { |
| | | HashSet<DN> parentsChildren = childDNs.get(parentDN); |
| | |
| | | |
| | | |
| | | // Make sure that the parent of the new entry exists. |
| | | DN parentDN = e.getName().getParentDNInSuffix(); |
| | | DN parentDN = DirectoryServer.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 = baseDN.getParentDNInSuffix(); |
| | | DN matchedDN = DirectoryServer.getParentDNInSuffix(baseDN); |
| | | while (matchedDN != null) |
| | | { |
| | | if (entryMap.containsKey(matchedDN)) |
| | |
| | | break; |
| | | } |
| | | |
| | | matchedDN = matchedDN.getParentDNInSuffix(); |
| | | matchedDN = DirectoryServer.getParentDNInSuffix(matchedDN); |
| | | } |
| | | |
| | | LocalizableMessage message = |