| | |
| | | * |
| | | * |
| | | * Copyright 2008 Sun Microsystems, Inc. |
| | | * Portions Copyright 2011-2013 ForgeRock AS |
| | | * Portions Copyright 2011-2014 ForgeRock AS |
| | | */ |
| | | package org.opends.server.extensions; |
| | | |
| | |
| | | { |
| | | // Get the entry DN from the map by its ID. If it isn't present, |
| | | // then return null. |
| | | entryDN = DN.decode(map.get(entryID)); |
| | | entryDN = DN.valueOf(map.get(entryID)); |
| | | } |
| | | } catch (Exception e) { |
| | | // Ignore. |
| | |
| | | backendEntriesMap.keySet().iterator(); |
| | | while (backendEntriesIterator.hasNext()) { |
| | | Long entryID = backendEntriesIterator.next(); |
| | | DN entryDN = DN.decode(backendEntriesMap.get(entryID)); |
| | | DN entryDN = DN.valueOf(backendEntriesMap.get(entryID)); |
| | | entryCacheDB.delete(null, new DatabaseEntry( |
| | | entryDN.toNormalizedString().getBytes("UTF-8"))); |
| | | backendEntriesIterator.remove(); |
| | |
| | | while (iterator.hasNext()) |
| | | { |
| | | try { |
| | | DN entryDN = DN.decode(iterator.next()); |
| | | DN entryDN = DN.valueOf(iterator.next()); |
| | | if (entryDN.isDescendantOf(baseDN)) { |
| | | iterator.remove(); |
| | | entryCacheIndex.dnMap.remove(entryDN.toNormalizedString()); |