| | |
| | | * |
| | | * |
| | | * Copyright 2006-2010 Sun Microsystems, Inc. |
| | | * Portions Copyright 2011 ForgeRock AS |
| | | */ |
| | | package org.opends.server.backends; |
| | | |
| | |
| | | baseMap = subordinateBaseDNs; |
| | | } |
| | | |
| | | for (DN subBase : baseMap.keySet()) |
| | | for (Map.Entry entry : baseMap.entrySet()) |
| | | { |
| | | Backend b = baseMap.get(subBase); |
| | | DN subBase = (DN)entry.getKey(); |
| | | Backend b = (Backend)entry.getValue(); |
| | | Entry subBaseEntry = b.getEntry(subBase); |
| | | if (subBaseEntry != null) |
| | | { |
| | |
| | | baseMap = subordinateBaseDNs; |
| | | } |
| | | |
| | | for (DN baseDN : baseMap.keySet()) |
| | | for (Map.Entry entry : baseMap.entrySet()) |
| | | { |
| | | DN baseDN = (DN)entry.getKey(); |
| | | if (entryDN.isDescendantOf(baseDN)) |
| | | { |
| | | Backend b = baseMap.get(baseDN); |
| | | Backend b = (Backend)entry.getValue(); |
| | | if (b.entryExists(entryDN)) |
| | | { |
| | | return true; |
| | |
| | | baseMap = subordinateBaseDNs; |
| | | } |
| | | |
| | | for (DN subBase : baseMap.keySet()) |
| | | for (Map.Entry entry : baseMap.entrySet()) |
| | | { |
| | | DN subBase = (DN)entry.getKey(); |
| | | searchOperation.checkIfCanceled(false); |
| | | |
| | | Backend b = baseMap.get(subBase); |
| | | Backend b = (Backend)entry.getValue(); |
| | | Entry subBaseEntry = b.getEntry(subBase); |
| | | if ((subBaseEntry != null) && filter.matchesEntry(subBaseEntry)) |
| | | { |
| | |
| | | |
| | | try |
| | | { |
| | | for (DN subBase : baseMap.keySet()) |
| | | for (Map.Entry entry : baseMap.entrySet()) |
| | | { |
| | | searchOperation.checkIfCanceled(false); |
| | | |
| | | Backend b = baseMap.get(subBase); |
| | | DN subBase = (DN)entry.getKey(); |
| | | searchOperation.setBaseDN(subBase); |
| | | |
| | | Backend b = (Backend)entry.getValue(); |
| | | try |
| | | { |
| | | b.search(searchOperation); |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override |
| | | public boolean isConfigurationChangeAcceptable( |
| | | RootDSEBackendCfg cfg, |
| | | List<Message> unacceptableReasons) |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override |
| | | public ConfigChangeResult applyConfigurationChange(RootDSEBackendCfg cfg) |
| | | { |
| | | ResultCode resultCode = ResultCode.SUCCESS; |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override |
| | | public void preloadEntryCache() throws UnsupportedOperationException { |
| | | throw new UnsupportedOperationException("Operation not supported."); |
| | | } |