| | |
| | | DN entryDN = entry.getName(); |
| | | if (entryMap.containsKey(entryDN)) |
| | | { |
| | | LocalizableMessage m = ERR_LDIF_BACKEND_ADD_ALREADY_EXISTS.get(entryDN.toString()); |
| | | LocalizableMessage m = ERR_LDIF_BACKEND_ADD_ALREADY_EXISTS.get(entryDN); |
| | | throw new DirectoryException(ResultCode.ENTRY_ALREADY_EXISTS, m); |
| | | } |
| | | |
| | |
| | | } |
| | | } |
| | | |
| | | LocalizableMessage m = |
| | | ERR_LDIF_BACKEND_ADD_MISSING_PARENT.get(entryDN.toString()); |
| | | throw new DirectoryException(ResultCode.NO_SUCH_OBJECT, m, matchedDN, |
| | | null); |
| | | LocalizableMessage m = ERR_LDIF_BACKEND_ADD_MISSING_PARENT.get(entryDN); |
| | | throw new DirectoryException(ResultCode.NO_SUCH_OBJECT, m, matchedDN, null); |
| | | } |
| | | } |
| | | } |
| | |
| | | parentDN = parentDN.getParentDNInSuffix(); |
| | | } |
| | | |
| | | LocalizableMessage m = |
| | | ERR_LDIF_BACKEND_DELETE_NO_SUCH_ENTRY.get(entryDN.toString()); |
| | | throw new DirectoryException(ResultCode.NO_SUCH_OBJECT, m, matchedDN, |
| | | null); |
| | | LocalizableMessage m = ERR_LDIF_BACKEND_DELETE_NO_SUCH_ENTRY.get(entryDN); |
| | | throw new DirectoryException(ResultCode.NO_SUCH_OBJECT, m, matchedDN, null); |
| | | } |
| | | |
| | | |
| | |
| | | |
| | | if (! subtreeDelete) |
| | | { |
| | | LocalizableMessage m = ERR_LDIF_BACKEND_DELETE_NONLEAF.get(entryDN.toString()); |
| | | LocalizableMessage m = ERR_LDIF_BACKEND_DELETE_NONLEAF.get(entryDN); |
| | | throw new DirectoryException(ResultCode.NOT_ALLOWED_ON_NONLEAF, m); |
| | | } |
| | | |
| | |
| | | parentDN = parentDN.getParentDNInSuffix(); |
| | | } |
| | | |
| | | LocalizableMessage m = |
| | | ERR_LDIF_BACKEND_MODIFY_NO_SUCH_ENTRY.get(entryDN.toString()); |
| | | throw new DirectoryException(ResultCode.NO_SUCH_OBJECT, m, matchedDN, |
| | | null); |
| | | LocalizableMessage m = ERR_LDIF_BACKEND_MODIFY_NO_SUCH_ENTRY.get(entryDN); |
| | | throw new DirectoryException(ResultCode.NO_SUCH_OBJECT, m, matchedDN, null); |
| | | } |
| | | |
| | | entryMap.put(entryDN, newEntry.duplicate(false)); |